the f32 of a swizzle's constant channel: 0.0, 1.0, 2.0, else 0.5
function ChannelConstant(ch : int) -> bits(32) =
FConst(if ch == SW_0 then 0x00000000 else if ch == SW_1 then 0x3f800000 else if ch == SW_2 then 0x40000000
else 0x3f000000)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 Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).