GPUDepthStencilState


class GPUDepthStencilState


Defines the state for depth and stencil testing and operations.

Summary

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-alpha02
GPUDepthStencilState(
    format: Int = TextureFormat.Undefined,
    depthWriteEnabled: Int = OptionalBool.Undefined,
    depthCompare: Int = CompareFunction.Undefined,
    stencilFront: GPUStencilFaceState = GPUStencilFaceState(),
    stencilBack: GPUStencilFaceState = GPUStencilFaceState(),
    stencilReadMask: Int = -0x7FFFFFFF,
    stencilWriteMask: Int = -0x7FFFFFFF,
    depthBias: Int = 0,
    depthBiasSlopeScale: Float = 0.0f,
    depthBiasClamp: Float = 0.0f
)

Public properties

depthBias

Added in 1.0.0-alpha02
var depthBiasInt

depthBiasClamp

Added in 1.0.0-alpha02
var depthBiasClampFloat

depthBiasSlopeScale

Added in 1.0.0-alpha02
var depthBiasSlopeScaleFloat

depthCompare

Added in 1.0.0-alpha02
var depthCompareInt

depthWriteEnabled

Added in 1.0.0-alpha02
var depthWriteEnabledInt

format

Added in 1.0.0-alpha02
var formatInt

The texture format of the depth/stencil attachment.

stencilBack

Added in 1.0.0-alpha02
var stencilBackGPUStencilFaceState

stencilFront

Added in 1.0.0-alpha02
var stencilFrontGPUStencilFaceState

stencilReadMask

Added in 1.0.0-alpha02
var stencilReadMaskInt

stencilWriteMask

Added in 1.0.0-alpha02
var stencilWriteMaskInt