aboutsummaryrefslogtreecommitdiff
path: root/src/shader/wrap/compute_shader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader/wrap/compute_shader.cc')
-rw-r--r--src/shader/wrap/compute_shader.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shader/wrap/compute_shader.cc b/src/shader/wrap/compute_shader.cc
index ab5d4c4..54f50f8 100644
--- a/src/shader/wrap/compute_shader.cc
+++ b/src/shader/wrap/compute_shader.cc
@@ -46,10 +46,8 @@ GLuint ComputeShader::setUniform(const std::string& name, unsigned int value) co
return id;
}
-void ComputeShader::workOn(GLuint bufferA, GLuint bufferB, GLuint bufferC) const {
- glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, bufferA);
- glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 2, bufferB);
- glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, bufferC);
+void ComputeShader::workOn(const std::vector<GLuint>& buffers) const {
+ glBindBuffersBase(GL_SHADER_STORAGE_BUFFER, 1, buffers.size(), buffers.data());
}
void ComputeShader::dispatch(GLuint nX, GLuint nY) const {