Apply a few optimizations to generated GLSL shaders.

This commit is contained in:
Dr. Chat
2016-01-30 19:39:47 -06:00
parent 9a09a61874
commit f75a4cab0e
2 changed files with 182 additions and 115 deletions

View File

@@ -73,6 +73,8 @@ class GlslShaderTranslator : public ShaderTranslator {
int depth_ = 0;
char depth_prefix_[16] = {0};
bool cf_wrote_pc_ = false;
bool cf_exec_pred_ = false;
bool cf_exec_pred_cond_ = false;
void ProcessVectorAluInstruction(const ParsedAluInstruction& instr);
void ProcessScalarAluInstruction(const ParsedAluInstruction& instr);