diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-25 07:41:54 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-26 07:17:36 +0200 |
commit | 3ab5bf64542f4fc8fac1e5f7579611cb49400ba4 (patch) | |
tree | f2253e1fc65a0150e509ce462b32cd54db6ab988 | |
parent | buffer_cache/texture_cache: Make GC functions private (diff) | |
download | yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.gz yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.bz2 yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.lz yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.xz yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.zst yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index 8cb65e588..0df4e1a1c 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -55,8 +55,9 @@ size_t BytesPerIndex(VkIndexType index_type) { template <typename T> std::array<T, 6> MakeQuadIndices(u32 quad, u32 first) { std::array<T, 6> indices{0, 1, 2, 0, 2, 3}; - std::ranges::transform(indices, indices.begin(), - [quad, first](u32 index) { return first + index + quad * 4; }); + for (T& index : indices) { + index = static_cast<T>(first + index + quad * 4); + } return indices; } } // Anonymous namespace |