draw method
Emits this geometry's draw call after bind has prepared the render pass.
Implementation
void draw(gpu.RenderPass pass, {int instanceCount = 1}) {
if (_indices != null) {
final count = _windowIndexCount;
if (count == 0) return;
drawIndexedCompat(pass, count, instanceCount: instanceCount);
} else {
// TODO(draw-window-vertices): honor the window's first vertex, which
// needs every vertex stream bound at an offset. Only the count applies.
final count = math.min(_windowCount ?? _vertexCount, _vertexCount);
if (count == 0) return;
drawCompat(pass, count, instanceCount: instanceCount);
}
}