GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::UnorderedDrawCommandBuffer< Mesh > Class Template Reference

Resource handle with shared ownership of a GPU memory buffer with copy-on-write value semantics containing an unordered set of draw commands to be used when drawing meshes to a RenderPass. More...

Detailed Description

template<typename Mesh>
class grem::graphics::UnorderedDrawCommandBuffer< Mesh >

Resource handle with shared ownership of a GPU memory buffer with copy-on-write value semantics containing an unordered set of draw commands to be used when drawing meshes to a RenderPass.

The unordered aspect of the buffer allows for optimizations such as batching instances by shader and/or mesh, in a way that is optimal for the underlying graphics API, regardless of the order in which the draw commands were inserted.

Template Parameters
Meshtype of meshes to be drawn.

The documentation for this class was generated from the following file: