27 #include "gpuCommandList.h" 54 size_t GPUCommandList::get_num_commands() {
55 return _commands.size();
72 size_t num_commands_written = 0;
74 while (num_commands_written < limit && !_commands.empty()) {
76 _commands.front().write_to(dest, num_commands_written);
78 num_commands_written ++;
81 return num_commands_written;
GPUCommandList()
RenderPipeline.
size_t write_commands_to(const PTA_uchar &dest, size_t limit=32)
Writes the first n-commands to a destination.
Class for storing data to be transferred to the GPU.
void add_command(const GPUCommand &cmd)
Pushes a GPUCommand to the command list.