Represents the renderState of a primitive used for rendering.

Constructors

Properties

dirtyPipeline: boolean = false
state: GPUPrimitiveState

Accessors

  • get cullMode(): GPUCullMode

    Retrieves the cull mode used for GPU rendering.

    Returns GPUCullMode

    The cull mode currently set.

  • set cullMode(mode: GPUCullMode): void

    Sets the cull mode for the GPU.

    Parameters

    • mode: GPUCullMode

      The cull mode to be set for the GPU.

    Returns void

    • Invalid value for cullMode. Received [mode]. Expected one of: [cullModeValues].
  • get frontFace(): GPUFrontFace

    Returns the front face configuration of the GPU.

    Returns GPUFrontFace

    The front face configuration.

  • set frontFace(face: GPUFrontFace): void

    Sets the front face of the GPU rendering.

    Parameters

    • face: GPUFrontFace

      The front face value to be set.

    Returns void

    if the given face value is not valid.

  • get stripIndexFormat(): GPUIndexFormat

    Retrieves the strip index format.

    Returns GPUIndexFormat

    The strip index format.

  • set stripIndexFormat(format: GPUIndexFormat): void

    Sets the index format for strip indices.

    Parameters

    • format: GPUIndexFormat

      The new index format to set.

    Returns void

  • get topology(): GPUPrimitiveTopology

    Get the GPU primitive topology.

    Returns GPUPrimitiveTopology

    The GPU primitive topology.

  • set topology(value: GPUPrimitiveTopology): void

    Setter method to set the GPU primitive topology.

    Parameters

    • value: GPUPrimitiveTopology

      The value to set the topology to.

    Returns void

    If the value is not a valid GPU primitive topology.

  • get unclippedDepth(): boolean

    Retrieves the value of the unclippedDepth property.

    Returns boolean

    The value of the unclippedDepth property.

  • set unclippedDepth(state: boolean): void

    Set the unclippedDepth renderState.

    Parameters

    • state: boolean

      The new value for the unclippedDepth renderState.

    Returns void

    If the renderState parameter is not of type boolean.