Skip to main content

operand_format

Function operand_format 

Source
pub fn operand_format(opcode: u16) -> Option<OperandFormat>
Expand description

The operand format of opcode (the opcode token’s low 11 bits, see opcode_name). None for the opcodes without one: declarations, which Declared types, and call, callc, label and interface_call, whose operands are not registers a program declares.

The table is the one vkd3d and DXVK both publish, with their counts agreeing for every opcode both list; where the sources disagree on a type class it is OperandClass::Varies. umad, emitthencut, emitthencut_stream and eval_snapped come from DXVK alone, and uaddc and usubb (two destinations and two sources) from Microsoft’s instruction reference, since neither public table lists them.