- const Framebuffer *source = (pipeline_state ? pipeline_state->get_framebuffer() : 0);
- if(!source)
- throw invalid_operation("OpenGLCommands::draw");
+ if(!pipeline_state)
+ throw invalid_operation("OpenGLCommands::dispatch_compute");
+
+ static Require req(ARB_compute_shader);
+
+ pipeline_state->apply();
+ glDispatchCompute(count_x, count_y, count_z);
+}
+
+void OpenGLCommands::resolve_multisample()
+{
+ const Framebuffer *framebuffer = (pipeline_state ? pipeline_state->get_framebuffer() : 0);
+ if(!framebuffer)
+ throw invalid_operation("OpenGLCommands::resolve_multisample");