From e760e5cc9739d8037fdf96647e2f1ba4162773e3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 8 Mar 2025 13:23:08 +0100 Subject: [PATCH] Fix particle sim shader compilation warning on Vulkan #https://github.com/KhronosGroup/glslang/issues/2066 --- Content/Editor/MaterialTemplates/GPUParticles.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content/Editor/MaterialTemplates/GPUParticles.shader b/Content/Editor/MaterialTemplates/GPUParticles.shader index 678eef099..5900743e3 100644 --- a/Content/Editor/MaterialTemplates/GPUParticles.shader +++ b/Content/Editor/MaterialTemplates/GPUParticles.shader @@ -140,7 +140,7 @@ void SetParticleVec4(uint particleIndex, int offset, float4 value) bool AddParticle(out uint dstIndex) { // Acquire the particle index in the destination buffer - DstParticlesData.InterlockedAdd(ParticleCounterOffset, 1, dstIndex); + DstParticlesData.InterlockedAdd(ParticleCounterOffset, 1u, dstIndex); // Prevent overflow return dstIndex >= PARTICLE_CAPACITY;