upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorQemmHD <290605352+QemmHD@users.noreply.github.com>2026-11-24 05:08:20 -0500
committerQemmHD <290605352+QemmHD@users.noreply.github.com>2026-11-24 05:10:18 -0500
commit8311d8918c3d6ec5cafbfbb6577aad69c6d1a06b (patch)
treecd83fd68a583a94cfe89144f571a831e15e9486b /runtime/src
parentee9db97988cb8c8ee36ab835becffb3b9e1d6bae (diff)
d3d12: the quad list index counts are 32-bit constants, not narrowed from size_t (C4267)
std::array::size() is a size_t, and the two constants made from it are 32-bit. MSVC warned once in d3d12_vulkan_device.cpp and once in every file that includes vulkan_replay.h: 124 C4267 warnings in a Windows build of the runtime and its tests. The values (6 indices for a quad) are unchanged. AI-assisted (Claude Code; Claude Opus 5.5 and Claude Fable 5.2). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/vulkan_replay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h
index f9dfb6b03..5ffa65c95 100644
--- a/runtime/src/vulkan_replay.h
+++ b/runtime/src/vulkan_replay.h
@@ -4231,7 +4231,7 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c
4231 } else { 4231 } else {
4232 // Both triangles start at the quad's first vertex for flat inputs. One draw also preserves 4232 // Both triangles start at the quad's first vertex for flat inputs. One draw also preserves
4233 // the original instance order, and VertexIndex - BaseVertex still gives 4q + k. 4233 // the original instance order, and VertexIndex - BaseVertex still gives 4q + k.
4234 constexpr std::uint32_t indices_per_quad = quad_triangle_indices.size(); 4234 constexpr auto indices_per_quad = std::uint32_t(quad_triangle_indices.size());
4235 const std::uint32_t wanted = draw->count / 4; 4235 const std::uint32_t wanted = draw->count / 4;
4236 const std::uint32_t quads = std::min(wanted, vk.quad_index_count / indices_per_quad); 4236 const std::uint32_t quads = std::min(wanted, vk.quad_index_count / indices_per_quad);
4237 if (quads < wanted) 4237 if (quads < wanted)