Skip to content

Commit

Permalink
Fix subgroup_size fragment tests to be valid WGSL. (#3916)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangz authored Aug 26, 2024
1 parent 9bde593 commit fd4023c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1659,15 +1659,15 @@ enable subgroups;
const width = ${t.params.size[0]};
const height = ${t.params.size[1]};
@group(0) @binding(0) var<storage, read_write> var for_layout : u32;
@group(0) @binding(0) var<storage, read_write> for_layout : u32;
@fragment
fn fsMain(
_ = for_layout;
@builtin(position) pos : vec4f,
@builtin(subgroup_size) sg_size : u32,
) -> @location(0) vec4u {
_ = for_layout;
let ballot = countOneBits(subgroupBallot(true));
let ballotSize = ballot.x + ballot.y + ballot.z + ballot.w;
Expand Down

0 comments on commit fd4023c

Please sign in to comment.