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-alpha06
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-alpha06
var cullMode: Int

Value is one of the following:

  • 0
  • 1
  • 2
  • 3

frontFace

Added in 1.0.0-alpha06
var frontFace: Int

Value is one of the following:

  • 0
  • 1
  • 2

stripIndexFormat

Added in 1.0.0-alpha06
var stripIndexFormat: Int

Value is one of the following:

  • 0
  • 1
  • 2

topology

Added in 1.0.0-alpha06
var topology: Int

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

Value is one of the following:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5

unclippedDepth

Added in 1.0.0-alpha06
var unclippedDepth: Boolean