Просмотр исходного кода

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.
Lioncash 5 лет назад
Родитель
Сommit
5b441fa25d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/video_core/shader/async_shaders.cpp

+ 2 - 2
src/video_core/shader/async_shaders.cpp

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