GPUPrimitiveState.strip constructor
GPUPrimitiveState.strip({})
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,
});