summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-25 02:41:54 -0300
committerGravatar ReinUsesLisp2021-06-26 02:17:36 -0300
commit3ab5bf64542f4fc8fac1e5f7579611cb49400ba4 (patch)
treef2253e1fc65a0150e509ce462b32cd54db6ab988 /src
parentbuffer_cache/texture_cache: Make GC functions private (diff)
downloadyuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.gz
yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.tar.xz
yuzu-3ab5bf64542f4fc8fac1e5f7579611cb49400ba4.zip
vk_buffer_cache: Silence implicit cast warnings
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.cpp5
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) {
55template <typename T> 55template <typename T>
56std::array<T, 6> MakeQuadIndices(u32 quad, u32 first) { 56std::array<T, 6> MakeQuadIndices(u32 quad, u32 first) {
57 std::array<T, 6> indices{0, 1, 2, 0, 2, 3}; 57 std::array<T, 6> indices{0, 1, 2, 0, 2, 3};
58 std::ranges::transform(indices, indices.begin(), 58 for (T& index : indices) {
59 [quad, first](u32 index) { return first + index + quad * 4; }); 59 index = static_cast<T>(first + index + quad * 4);
60 }
60 return indices; 61 return indices;
61} 62}
62} // Anonymous namespace 63} // Anonymous namespace