]> 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 9335164b38477993d9202db61f9f140e67cfb232..3341d9aa061e038f3acb59c5515cc6f776c9d5d7 100644 (file)
@@ -197,6 +197,7 @@ public:
 
        void set_texture(Tag, const Texture *, const Sampler * = 0);
        void set_texture(Tag, const Texture *, int, const Sampler * = 0);
+       void set_storage_texture(Tag, const Texture *);
 
 private:
        template<typename T>
@@ -230,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);