mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
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:
parent
b987f220e1
commit
abc662d69c
4 changed files with 164 additions and 57 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue