summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-13 11:43:06 +0100
committerGitHub <noreply@github.com>2022-03-13 11:43:06 +0100
commit8decc8d1a567e81d5909e856aac6db66fff331eb (patch)
tree9f8daf3178e50d6973c8875d15280f9cc3c25c9b /src/video_core
parentMerge pull request #8009 from ameerj/dynarmic-exclusives-config (diff)
parentemit_spirv, vk_compute_pass: Resolve VS2022 compiler errors (diff)
downloadyuzu-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.cpp3
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);