drawNonIndexed method
void
drawNonIndexed({})
override
Draws vertexCount vertices from firstVertex in order, with no index
buffer, instanceCount times from firstInstance —
DeviceFeature.nonIndexedDraw. The bound index buffer, if any, is
ignored rather than forgotten.
A non-zero firstVertex or firstInstance needs
DeviceFeature.baseVertexBaseInstance as well, as drawIndexed's base
vertex and first instance do: the same backends lack both.
Implementation
@override
void drawNonIndexed({
required int vertexCount,
int firstVertex = 0,
int instanceCount = 1,
int firstInstance = 0,
}) => _gated(DeviceFeature.nonIndexedDraw, 'drawNonIndexed', (
vertexCount: vertexCount,
firstVertex: firstVertex,
instanceCount: instanceCount,
firstInstance: firstInstance,
));