Condition

pica.sail

function Condition() -> bool = {
    let c = UInt(Field(22, 2));
    if c == 2 then CodeIs(0, Field(25, 1)) else if c == 3 then CodeIs(1, Field(24, 1)) else {
        let x = CodeIs(0, Field(25, 1));
        let y = CodeIs(1, Field(24, 1));
        if c == 0 then x | y else x & y
    }
}

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.