diff options
| author | 2020-11-20 04:34:02 -0500 | |
|---|---|---|
| committer | 2020-11-20 04:38:18 -0500 | |
| commit | 5b441fa25d7003d7fc85584d2e5c30e9d54e69f6 (patch) | |
| tree | 64d233022605762d333c8836e4423afa385445e8 | |
| parent | Merge pull request #4936 from lioncash/page (diff) | |
| download | yuzu-5b441fa25d7003d7fc85584d2e5c30e9d54e69f6.tar.gz yuzu-5b441fa25d7003d7fc85584d2e5c30e9d54e69f6.tar.xz yuzu-5b441fa25d7003d7fc85584d2e5c30e9d54e69f6.zip | |
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 '')
| -rw-r--r-- | src/video_core/shader/async_shaders.cpp | 4 |
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 39cc3b869..c106b2a20 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, | |||
| 153 | .descriptor_pool = &descriptor_pool, | 153 | .descriptor_pool = &descriptor_pool, |
| 154 | .update_descriptor_queue = &update_descriptor_queue, | 154 | .update_descriptor_queue = &update_descriptor_queue, |
| 155 | .renderpass_cache = &renderpass_cache, | 155 | .renderpass_cache = &renderpass_cache, |
| 156 | .bindings = bindings, | 156 | .bindings = std::move(bindings), |
| 157 | .program = program, | 157 | .program = std::move(program), |
| 158 | .key = key, | 158 | .key = key, |
| 159 | }; | 159 | }; |
| 160 | 160 | ||