diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-13 11:43:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 11:43:06 +0100 |
commit | 8decc8d1a567e81d5909e856aac6db66fff331eb (patch) | |
tree | 9f8daf3178e50d6973c8875d15280f9cc3c25c9b /src/video_core | |
parent | Merge pull request #8009 from ameerj/dynarmic-exclusives-config (diff) | |
parent | emit_spirv, vk_compute_pass: Resolve VS2022 compiler errors (diff) | |
download | yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar.gz yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar.bz2 yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar.lz yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar.xz yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.tar.zst yuzu-8decc8d1a567e81d5909e856aac6db66fff331eb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_compute_pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp index 3e96c0f60..4d73427b4 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp +++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <array> #include <cstring> #include <memory> #include <optional> @@ -292,7 +293,7 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble( .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, .dstAccessMask = VK_ACCESS_INDEX_READ_BIT, }; - const std::array push_constants{base_vertex, index_shift}; + const std::array<u32, 2> push_constants{base_vertex, index_shift}; const VkDescriptorSet set = descriptor_allocator.Commit(); device.GetLogical().UpdateDescriptorSet(set, *descriptor_template, descriptor_data); cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_COMPUTE, *pipeline); |