+ batch.refresh();
+ commands.use_pipeline(&pipeline_state);
+ commands.draw_instanced(batch, count);
+}
+
+void Renderer::resolve_multisample(Framebuffer &target)
+{
+ if(!state->framebuffer)
+ throw invalid_operation("Renderer::resolve_multisample");
+
+ 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");