X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frenderer.h;h=da2cf8bac866d8284a2fe4c6395a935f8eba5258;hb=0b9f7e786f7bf4c751c62f345a932916b113e40c;hp=9335164b38477993d9202db61f9f140e67cfb232;hpb=99c6b7501afa7a712fdd61c8f1f1ecd6937a9783;p=libs%2Fgl.git diff --git a/source/render/renderer.h b/source/render/renderer.h index 9335164b..da2cf8ba 100644 --- a/source/render/renderer.h +++ b/source/render/renderer.h @@ -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 @@ -230,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);