mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-29 02:08:38 +02:00
GL: Add support for compute shaders
This commit is contained in:
committed by
refractionpcsx2
parent
46db4077b8
commit
d132ddefef
@@ -137,6 +137,17 @@ namespace GL
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Program::CompileCompute(const std::string_view glsl)
|
||||
{
|
||||
GLuint id = CompileShader(GL_COMPUTE_SHADER, glsl);
|
||||
if (id == 0)
|
||||
return false;
|
||||
|
||||
m_program_id = glCreateProgram();
|
||||
glAttachShader(m_program_id, id);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Program::CreateFromBinary(const void* data, u32 data_length, u32 data_format)
|
||||
{
|
||||
GLuint prog = glCreateProgram();
|
||||
|
||||
Reference in New Issue
Block a user