Skip to content

Commit c02441e

Browse files
committed
Fix errors in WebGPU when using GPU particles
1 parent c78e576 commit c02441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/ShadersWGSL/gpuUpdateParticles.compute.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn getRandomVec4(offset : f32, vertexID : f32) -> vec4<f32> {
169169
return textureLoad(randomTexture, vec2<i32>(i32(vertexID * offset / params.currentCount * f32(params.randomTextureSize)) % params.randomTextureSize, 0), 0);
170170
}
171171

172-
@stage(compute) @workgroup_size(64)
172+
@compute @workgroup_size(64)
173173
fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3<u32>) {
174174
let index : u32 = GlobalInvocationID.x;
175175
let vertexID : f32 = f32(index);

0 commit comments

Comments
 (0)