]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Support compute shaders and compute operations
[libs/gl.git] / source / render / renderer.h
index fb460cf07824cfea911c651d897c2aa88bce053b..3341d9aa061e038f3acb59c5515cc6f776c9d5d7 100644 (file)
@@ -231,6 +231,9 @@ public:
        /** Draws multiple instances of a batch of primitives.  A shader must be active. */
        void draw_instanced(const Batch &, unsigned);
 
+       /** 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);