- unsigned width = state->framebuffer->get_width();
- unsigned height = state->framebuffer->get_height();
- if(target.get_width()!=width || target.get_height()!=height)
- throw incompatible_data("Renderer::resolve_multisample");
+void Renderer::dispatch(unsigned count_x, unsigned count_y, unsigned count_z)
+{
+ apply_state();
+ PipelineState &ps = get_pipeline_state();
+ commands.use_pipeline(&ps);
+ commands.dispatch(count_x, count_y, count_z);
+}
+
+void Renderer::resolve_multisample()
+{
+ const State &state = get_state();
+
+ if(!state.framebuffer)
+ throw invalid_operation("Renderer::resolve_multisample");