[D3D12] DXBC: More vector instructions

This commit is contained in:
Triang3l
2018-09-04 23:02:55 +03:00
parent 72e6526067
commit c4ceb6c0b9
2 changed files with 265 additions and 49 deletions

View File

@@ -238,8 +238,11 @@ class DxbcShaderTranslator : public ShaderTranslator {
DxbcSourceOperand& dxbc_operand);
// Number of tokens this operand adds to the instruction length when used.
uint32_t DxbcSourceOperandLength(const DxbcSourceOperand& operand) const;
// Writes the operand access tokens to the instruction.
void UseDxbcSourceOperand(const DxbcSourceOperand& operand);
// Writes the operand access tokens to the instruction (either for a scalar if
// select_component is <= 3, or for a vector).
void UseDxbcSourceOperand(const DxbcSourceOperand& operand,
uint32_t additional_swizzle = kSwizzleXYZW,
uint32_t select_component = 4);
void UnloadDxbcSourceOperand(const DxbcSourceOperand& operand);
void ProcessVectorAluInstruction(const ParsedAluInstruction& instr);