GPUPrimitiveState


class GPUPrimitiveState


Describes the primitive assembly and rasterization state for a render pipeline.

Summary

Nested types

Builder for GPUPrimitiveState.

Public constructors

GPUPrimitiveState(
    topology: Int,
    stripIndexFormat: Int,
    frontFace: Int,
    cullMode: Int,
    unclippedDepth: Boolean
)

Public properties

Int
Int
Int
Int

The primitive topology.

Boolean

Public constructors

GPUPrimitiveState

Added in 1.0.0-alpha04
GPUPrimitiveState(
    topology: Int = PrimitiveTopology.TriangleList,
    stripIndexFormat: Int = IndexFormat.Undefined,
    frontFace: Int = FrontFace.CCW,
    cullMode: Int = CullMode.None,
    unclippedDepth: Boolean = false
)

Public properties

cullMode

Added in 1.0.0-alpha04
var cullModeInt

frontFace

Added in 1.0.0-alpha04
var frontFaceInt

stripIndexFormat

Added in 1.0.0-alpha04
var stripIndexFormatInt

topology

Added in 1.0.0-alpha04
var topologyInt

The primitive topology. Defaults to @see PrimitiveTopology.TriangleList if undefined.

unclippedDepth

Added in 1.0.0-alpha04
var unclippedDepthBoolean