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