GPUPrimitiveState.strip constructor

GPUPrimitiveState.strip({
  1. String topology,
  2. String cullMode,
  3. String frontFace,
  4. String stripIndexFormat,
})

A strip topology, which needs the index format stated in the pipeline.

A strip pipeline that leaves stripIndexFormat out cannot be used for an indexed draw at all, because a strip's restart value depends on the index width and WebGPU settles that when the pipeline is built rather than when the buffer is bound. PrimitiveType.triangleStrip and PrimitiveType.lineStrip are both in the contract, so this is a case a backend meets rather than a corner of the specification.

Implementation

external factory GPUPrimitiveState.strip({
  String topology,
  String cullMode,
  String frontFace,
  String stripIndexFormat,
});