Skip to main content

q3_slots

Function q3_slots 

Source
fn q3_slots() -> [(usize, u32, u32); 32]
Expand description

Three-bit codes split into their upper two bits and lowest bit. The upper pair uses the 2-bit layout; the lowest bit goes into a third word at 8 * byte + 4 * word + group. The shader reconstructs code = 2 * upper + lowest from the corresponding masked casts.