aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/async_shaders.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-20 04:34:02 -0500
committerLioncash <mathew1800@gmail.com>2020-11-20 04:38:18 -0500
commit8ac9c08758eee12e8185226135b56dfdd9b9d5b4 (patch)
tree64d233022605762d333c8836e4423afa385445e8 /src/video_core/shader/async_shaders.cpp
parentd2aae53f23078babc3498ff7d2454e94c3de1c59 (diff)
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.
Diffstat (limited to 'src/video_core/shader/async_shaders.cpp')
-rw-r--r--src/video_core/shader/async_shaders.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp
index 39cc3b8698..c106b2a20a 100644
--- a/src/video_core/shader/async_shaders.cpp
+++ b/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,
};