mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 15:47:30 +01:00
Add SSBO and compute shader support to gl wrappers
This commit is contained in:
@@ -336,3 +336,9 @@ void gl::program::bind(GLuint i)
|
||||
{
|
||||
glUseProgram(i);
|
||||
}
|
||||
|
||||
void gl::program::dispatch(GLuint groups_x, GLuint groups_y, GLuint groups_z)
|
||||
{
|
||||
bind();
|
||||
glDispatchCompute(groups_x, groups_y, groups_z);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user