the swizzle pattern of an operand descriptor: the destination mask at 0-3, then for each source n (1-3) its negation (4, 13, 22) and its selectors (5, 14, 23: w at the lowest two bits, x at the highest)
val Pattern : int -> bits(32)
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.