Class CommandBuffer
Defined in File GPU.hpp
Class Documentation
-
class CommandBuffer
A structure for usage by the GPU manager to invoke a set of GPU commands.
Public Functions
Draw a mesh using a material.
- Parameters:
mesh – The mesh to draw
material – The material to draw the mesh with
transform – The transform to position the mesh
- Throws:
NonexistentValueException – If either the mesh or material handles are empty
BadBakeStateException – If the mesh is not baked
BadBakeStateException – If the shader backing the material is not baked
Public Static Functions
-
static std::unique_ptr<CommandBuffer> Create()
Create a new empty command buffer.
Protected Functions
Friends
- friend class GPUManager
- friend class PALModule