35void VKBatch::draw(
int vertex_first,
int vertex_count,
int instance_first,
int instance_count)
46 const bool draw_indexed = index_buffer !=
nullptr;
48 VKFrameBuffer &framebuffer = *context.active_framebuffer_get();
54 node.data.index_count = vertex_count;
55 node.data.instance_count = instance_count;
58 node.data.first_instance = instance_first;
60 node.data.index_buffer.buffer = index_buffer->
resource();
66 node.finalize(graph, create_info);
71 node.data.vertex_count = vertex_count;
72 node.data.instance_count = instance_count;
73 node.data.first_vertex = vertex_first;
74 node.data.first_instance = instance_first;
80 node.finalize(graph, create_info);
112 const bool draw_indexed = index_buffer !=
nullptr;
114 VKFrameBuffer &framebuffer = *context.active_framebuffer_get();
121 node.data.offset = offset;
122 node.data.draw_count = count;
123 node.data.stride = stride;
125 node.data.index_buffer.buffer = index_buffer->
resource();
131 node.finalize(graph, create_info);
137 node.data.offset = offset;
138 node.data.draw_count = count;
139 node.data.stride = stride;
145 node.finalize(graph, create_info);