[D3D12] Shader compiler vector ALU

This commit is contained in:
Triang3l
2018-07-23 11:22:43 +03:00
parent 3101930526
commit 40806c1b67
2 changed files with 138 additions and 2 deletions

View File

@@ -64,6 +64,9 @@ class HlslShaderTranslator : public ShaderTranslator {
void ProcessVertexFetchInstruction(
const ParsedVertexFetchInstruction& instr) override;
void ProcessTextureFetchInstruction(
const ParsedTextureFetchInstruction& instr) override;
void ProcessAluInstruction(const ParsedAluInstruction& instr) override;
private:
void Indent();
@@ -97,6 +100,9 @@ class HlslShaderTranslator : public ShaderTranslator {
uint32_t sampler_count_ = 0;
uint32_t AddSampler(uint32_t fetch_constant);
void ProcessVectorAluInstruction(const ParsedAluInstruction& instr);
void ProcessScalarAluInstruction(const ParsedAluInstruction& instr);
// Whether the cube instruction has been used and conversion functions need to
// be emitted.
bool cube_used_ = false;