From b7838005c047c846cc1f1f35cdbeaa644334e0a5 Mon Sep 17 00:00:00 2001 From: local Date: Wed, 25 Nov 2026 05:38:11 -0600 Subject: [PATCH] Batched clamp: an unfilled mesh record is all zeros, as the clamp of one leaves it Co-Authored-By: Claude Opus 5.5 --- crates/victory-gpu/src/indirect/batch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/victory-gpu/src/indirect/batch.rs b/crates/victory-gpu/src/indirect/batch.rs index 21af58a..e6da6a1 100644 --- a/crates/victory-gpu/src/indirect/batch.rs +++ b/crates/victory-gpu/src/indirect/batch.rs @@ -96,6 +96,8 @@ void main(uint3 id : SV_DispatchThreadID, uint gi : SV_GroupIndex) { } else { if (record[0] > 65535u) { record[0] = 0; + record[1] = 0; + record[2] = 0; } asked = record[0]; record[1] = min(record[1], 1u);