GPUPrimitiveState¶
interface GPUPrimitiveState
Properties¶
cullMode¶
abstract val cullMode: GPUCullMode
Defines which polygon orientation will be culled, if any.
frontFace¶
abstract val frontFace: GPUFrontFace
Defines which polygons are considered front-facing.
stripIndexFormat¶
abstract val stripIndexFormat: GPUIndexFormat?
For pipelines with strip topologies ("line-strip" or "triangle-strip"), this determines the index buffer format and primitive restart value ("uint16"/0xFFFF or "uint32"/0xFFFFFFFF). It is not allowed on pipelines with non-strip topologies. Note: Some implementations require knowledge of the primitive restart value to compile pipeline state objects.
topology¶
abstract val topology: GPUPrimitiveTopology
The type of primitive to be constructed from the vertex inputs.
unclippedDepth¶
abstract val unclippedDepth: Boolean
If true, indicates that depth clipping is disabled. Requires the "depth-clip-control" feature to be enabled.