2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

async_shaders: std::move data within QueueVulkanShader()

Same behavior, but avoids redundant copies.

While we're at it, we can simplify the pushing of the parameters into
the pending queue.
This commit is contained in:
Lioncash 2020-11-20 04:34:02 -05:00
parent 92344da20c
commit 5b441fa25d

View file

@ -153,8 +153,8 @@ void AsyncShaders::QueueVulkanShader(Vulkan::VKPipelineCache* pp_cache,
.descriptor_pool = &descriptor_pool, .descriptor_pool = &descriptor_pool,
.update_descriptor_queue = &update_descriptor_queue, .update_descriptor_queue = &update_descriptor_queue,
.renderpass_cache = &renderpass_cache, .renderpass_cache = &renderpass_cache,
.bindings = bindings, .bindings = std::move(bindings),
.program = program, .program = std::move(program),
.key = key, .key = key,
}; };