Skip to main content

warp_ballot

Function warp_ballot 

Source
pub fn warp_ballot(_pred: bool) -> [u32; 4]
Expand description

Ballot within subgroup. Maps to subgroupBallot(predicate) in WGSL. Returns a vec4 where each bit represents a lane’s predicate.