]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Refactor batch setup in Renderer to a helper function
[libs/gl.git] / source / render / renderer.h
index fb460cf07824cfea911c651d897c2aa88bce053b..da2cf8bac866d8284a2fe4c6395a935f8eba5258 100644 (file)
@@ -231,9 +231,16 @@ public:
        /** Draws multiple instances of a batch of primitives.  A shader must be active. */
        void draw_instanced(const Batch &, unsigned);
 
+private:
+       void apply_batch(const Batch &);
+
+public:
+       /** Dispatches a compute operation. */
+       void dispatch(unsigned, unsigned = 1, unsigned = 1);
+
        /** Resolves multisample attachments from the active framebuffer into
-       target. */
-       void resolve_multisample(Framebuffer &target);
+       their corresponding resolve attachments. */
+       void resolve_multisample();
 
        void begin_query(const QueryPool &, unsigned);
        void end_query(const QueryPool &, unsigned);