]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Rework multisample resolve to use resolve attachments
[libs/gl.git] / source / render / renderer.h
index 9335164b38477993d9202db61f9f140e67cfb232..39ac462fbb96d4901c8f9ec884ba141dce04ecb6 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,9 +231,12 @@ 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);
+       their corresponding resolve attachments. */
+       void resolve_multisample();
 
        void begin_query(const QueryPool &, unsigned);
        void end_query(const QueryPool &, unsigned);