1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 00:48:44 +01:00
dxvk/src/dxbc/dxbc_compiler.h

41 lines
693 B
C
Raw Normal View History

#pragma once
#include "./gen/dxbc_gen_common.h"
namespace dxvk {
/**
* \brief DXBC compiler
*
* Interprets DXBC instructions and generates
* SPIR-V code for the appropriate shader type.
*/
class DxbcCompiler {
public:
DxbcCompiler(
const DxbcProgramVersion& version);
~DxbcCompiler();
void processInstruction(
const DxbcInstruction& ins);
Rc<DxvkShader> finalize();
private:
Rc<DxbcCodeGen> m_gen;
void dclGlobalFlags(
const DxbcInstruction& ins);
void dclInterfaceVar(
const DxbcInstruction& ins);
void dclTemps(
const DxbcInstruction& ins);
};
}