drawNonIndexed method

  1. @override
void drawNonIndexed({
  1. required int vertexCount,
  2. int firstVertex = 0,
  3. int instanceCount = 1,
  4. int firstInstance = 0,
})
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,
));