diff --git a/test/compute_boids.wgsl b/test/compute_boids.wgsl index b3a7b7ec85..967536df8a 100644 --- a/test/compute_boids.wgsl +++ b/test/compute_boids.wgsl @@ -41,12 +41,12 @@ fn frag_main() -> void { entry_point fragment as "frag_main" = frag_main; # compute shader -type Particle = struct { +type Particle = [[block]] struct { [[offset 0]] pos : vec2; [[offset 8]] vel : vec2; }; -type SimParams = struct { +type SimParams = [[block]] struct { [[offset 0]] deltaT : f32; [[offset 4]] rule1Distance : f32; [[offset 8]] rule2Distance : f32; @@ -56,7 +56,7 @@ type SimParams = struct { [[offset 24]] rule3Scale : f32; }; -type Particles = struct { +type Particles = [[block]] struct { [[offset 0]] particles : array; };