27 if (batch_ !=
batch) {
35 const bool is_indexed = index_buffer !=
nullptr;
42 const bool new_buffer_needed = command_index_ == 0;
44 VkDrawIndexedIndirectCommand &command = get_command<VkDrawIndexedIndirectCommand>(*buffer);
48 command.firstInstance = instance_first;
49 command.instanceCount = instance_count;
54 if (vertex_buffer ==
nullptr || vertex_buffer->
vertex_len == 0) {
58 const bool new_buffer_needed = command_index_ == 0;
60 VkDrawIndirectCommand &command = get_command<VkDrawIndirectCommand>(*buffer);
61 command.vertexCount = vertex_buffer->
vertex_len;
62 command.instanceCount = instance_count;
63 command.firstVertex = 0;
64 command.firstInstance = instance_first;
69 if (command_index_ == length_) {