Fix particle sim shader compilation warning on Vulkan

#https://github.com/KhronosGroup/glslang/issues/2066
This commit is contained in:
Wojtek Figat
2025-03-08 13:23:08 +01:00
parent ca153e70ab
commit e760e5cc97

View File

@@ -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;