UniformBool

pica.sail

format 3's bool uniform (id at 22), inverted: whether it is clear

function UniformBool(inverted : bool) -> bool = {
    let masked = UniformB() & LSL(0x00000001, UInt(Field(22, 4)));
    if inverted then masked == 0x00000000 else masked != 0x00000000
}

Used by


Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from nihstro's shader_bytecode.h (BSD-3-Clause), as Azahar reads them.