Class CommandBuffer

Class Documentation

class CommandBuffer

A structure for usage by the GPU manager to invoke a set of GPU commands.

Public Functions

inline virtual void Add(GPUCommand&&)

Add a command to this command buffer.

Parameters:

cmd – The command to add

inline virtual ~CommandBuffer()

Public Static Functions

static std::unique_ptr<CommandBuffer> Create()

Create a new empty command buffer.

Protected Functions

inline CommandBuffer()
inline virtual void Execute()
std::function<void(CommandBuffer*)> &&GetCommandFn(GPUCommand&&)