OGL: Support compute shaders and emitting GLSL 4.3

This also changes bSupportsEarlyFragmentTests to
bSupportsImageLoadStore, as it is used for both.
This commit is contained in:
Stenzek
2016-11-27 18:14:56 +10:00
parent b987f220e1
commit abc662d69c
4 changed files with 164 additions and 57 deletions

View File

@ -46,7 +46,7 @@ struct SHADER
std::string strvprog, strpprog, strgprog;
void SetProgramVariables();
void SetProgramBindings();
void SetProgramBindings(bool is_compute);
void Bind();
};
@ -67,6 +67,7 @@ public:
static bool CompileShader(SHADER& shader, const std::string& vcode, const std::string& pcode,
const std::string& gcode = "");
static bool CompileComputeShader(SHADER& shader, const std::string& code);
static GLuint CompileSingleShader(GLuint type, const std::string& code);
static void UploadConstants();