diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-12 08:54:33 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-12 08:54:33 +0100 |
commit | e8c50e709e8d7a1080935594374f0fc295628570 (patch) | |
tree | 2a2fd430fd9704f1a9f1d6d2607c3331d47efe48 /src/video_core | |
parent | Merge pull request #7997 from Wunkolo/cpu_detect_more (diff) | |
download | yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar.gz yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar.bz2 yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar.lz yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar.xz yuzu-e8c50e709e8d7a1080935594374f0fc295628570.tar.zst yuzu-e8c50e709e8d7a1080935594374f0fc295628570.zip |
Diffstat (limited to 'src/video_core')
-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); |