mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
vk_buffer_cache: Silence implicit cast warnings
This commit is contained in:
parent
b4894faeae
commit
3ab5bf6454
1 changed files with 3 additions and 2 deletions
|
@ -55,8 +55,9 @@ size_t BytesPerIndex(VkIndexType index_type) {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
std::array<T, 6> MakeQuadIndices(u32 quad, u32 first) {
|
std::array<T, 6> MakeQuadIndices(u32 quad, u32 first) {
|
||||||
std::array<T, 6> indices{0, 1, 2, 0, 2, 3};
|
std::array<T, 6> indices{0, 1, 2, 0, 2, 3};
|
||||||
std::ranges::transform(indices, indices.begin(),
|
for (T& index : indices) {
|
||||||
[quad, first](u32 index) { return first + index + quad * 4; });
|
index = static_cast<T>(first + index + quad * 4);
|
||||||
|
}
|
||||||
return indices;
|
return indices;
|
||||||
}
|
}
|
||||||
} // Anonymous namespace
|
} // Anonymous namespace
|
||||||
|
|
Loading…
Reference in a new issue