Public Types |
enum | AddressMode {
Register,
Immediate,
Literal,
ConstantBuffer,
Special,
Invalid
} |
| Addressing modes of operand.
More...
|
enum | DataType { I32,
F32,
InvalidDataType
} |
| Type specifier.
More...
|
enum | SpecialRegister {
vTidInGrpX,
vTidInGrpY,
vTidInGrpZ,
vNTidInGrpX,
vNTidInGrpY,
vNTidInGrpZ,
vThreadGrpIdX,
vThreadGrpIdY,
vThreadGrpIdZ,
vNThreadGrpIdX,
vNThreadGrpIdY,
vNThreadGrpIdZ,
SpecialRegister_invalid
} |
| Special register names.
More...
|
enum | ComponentSelect {
CompSel_0,
CompSel_1,
CompSel_X,
CompSel_Y,
CompSel_Z,
CompSel_W,
CompSel_NoWrite,
CompSel_Invalid
} |
| Component selection for source modifiers.
More...
|
Public Member Functions |
| ILOperand () |
| Default constructor.
|
std::string | toString () const |
std::string | toString (ComponentSelect c) const |
std::string | toString (SpecialRegister sr) const |
std::string | toStringRegister () const |
ILOperand | neg () const |
| Negate.
|
|
Returns a copy of the operand.
|
ILOperand | x () const |
ILOperand | y () const |
ILOperand | z () const |
ILOperand | w () const |
ILOperand | xy () const |
ILOperand | xxxx () const |
ILOperand | x___ () const |
ILOperand | _y__ () const |
ILOperand | __z_ () const |
ILOperand | ___w () const |
Public Attributes |
AddressMode | addressMode |
| Addressing mode of operand.
|
DataType | type |
| Data type.
|
SpecialRegister | special |
| Value of operand.
|
std::string | identifier |
| Identifier of operand.
|
union { |
int imm_int |
float imm_float |
}; | |
|
ComponentSelect | swizzle_x |
| Swizzle.
|
ComponentSelect | swizzle_y |
ComponentSelect | swizzle_z |
ComponentSelect | swizzle_w |
bool | negate_x |
| Negate.
|
bool | negate_y |
bool | negate_z |
bool | negate_w |
A class for a basic IL Operand.