17
0
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:
2026-10-15 12:13:44 +02:00
parent 39d5df2ef3
commit 677a96c293
9 changed files with 203 additions and 0 deletions

View File

@@ -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);
}