]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
An assortment of minor fixes
[libs/gl.git] / source / render / renderer.h
index 9335164b38477993d9202db61f9f140e67cfb232..0fa19346042ea1f5980c478e5dabd305bf66ab6a 100644 (file)
@@ -152,7 +152,7 @@ public:
        void push_state();
 
        /** Restores a previously saved state.  Must be matched with an earlier
-       push_state call. */
+       push_state() call. */
        void pop_state();
 
 private:
@@ -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>
@@ -227,12 +228,20 @@ public:
        /** Draws a batch of primitives.  A shader must be active. */
        void draw(const Batch &);
 
-       /** Draws multiple instances of a batch of primitives.  A shader must be active. */
+       /** 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);