GPUDepthStencilState


class GPUDepthStencilState


Describes the depth and stencil state for a render pipeline.

Summary

Nested types

Builder for GPUDepthStencilState.

Public constructors

GPUDepthStencilState(
    format: Int,
    depthWriteEnabled: Int,
    depthCompare: Int,
    stencilFront: GPUStencilFaceState,
    stencilBack: GPUStencilFaceState,
    stencilReadMask: Int,
    stencilWriteMask: Int,
    depthBias: Int,
    depthBiasSlopeScale: Float,
    depthBiasClamp: Float
)

Public constructors

GPUDepthStencilState

Added in 1.0.0-alpha04
GPUDepthStencilState(
    format: Int = TextureFormat.Undefined,
    depthWriteEnabled: Int = OptionalBool.Undefined,
    depthCompare: Int = CompareFunction.Undefined,
    stencilFront: GPUStencilFaceState = GPUStencilFaceState(),
    stencilBack: GPUStencilFaceState = GPUStencilFaceState(),
    stencilReadMask: Int = -1,
    stencilWriteMask: Int = -1,
    depthBias: Int = 0,
    depthBiasSlopeScale: Float = 0.0f,
    depthBiasClamp: Float = 0.0f
)

Public properties

depthBias

Added in 1.0.0-alpha04
var depthBiasInt

depthBiasClamp

Added in 1.0.0-alpha04
var depthBiasClampFloat

depthBiasSlopeScale

Added in 1.0.0-alpha04
var depthBiasSlopeScaleFloat

depthCompare

Added in 1.0.0-alpha04
var depthCompareInt

depthWriteEnabled

Added in 1.0.0-alpha04
var depthWriteEnabledInt

format

Added in 1.0.0-alpha04
var formatInt

The texture format of the depth-stencil attachment.

stencilBack

Added in 1.0.0-alpha04
var stencilBackGPUStencilFaceState

stencilFront

Added in 1.0.0-alpha04
var stencilFrontGPUStencilFaceState

stencilReadMask

Added in 1.0.0-alpha04
var stencilReadMaskInt

stencilWriteMask

Added in 1.0.0-alpha04
var stencilWriteMaskInt