[D3D12] HLSL shader translator stores

This commit is contained in:
Triang3l
2018-07-22 14:28:33 +03:00
parent 11e4ae3f90
commit 67f88ff59c
2 changed files with 161 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ class HlslShaderTranslator : public ShaderTranslator {
void EndPredicatedInstruction(bool conditional_emitted);
void EmitLoadOperand(uint32_t src_index, const InstructionOperand& op);
void EmitStoreResult(const InstructionResult& result, bool source_is_scalar);
StringBuffer source_;
uint32_t depth_ = 0;
@@ -80,6 +81,8 @@ class HlslShaderTranslator : public ShaderTranslator {
bool cf_exec_pred_ = false;
bool cf_exec_pred_cond_ = false;
bool writes_depth_ = false;
std::vector<SRVBinding> srv_bindings_;
// Finds or adds an SRV binding to the shader's SRV list, returns t# index.
uint32_t AddSRVBinding(SRVType type, uint32_t fetch_constant);