plane_shuffle

Function plane_shuffle 

Source
pub fn plane_shuffle<E: CubePrimitive>(value: E, src_lane: u32) -> E
Expand description

Perform an arbitrary lane shuffle operation across the plane. Each unit reads the value from the specified source lane.

ยงExample

plane_shuffle(value, 0) - all lanes read from lane 0 (same as broadcast) plane_shuffle(value, lane_id ^ 1) - butterfly pattern (same as shuffle_xor)