DepthStencilState


class DepthStencilState


Defines the state for depth and stencil testing and operations.

Summary

Public constructors

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

Public constructors

DepthStencilState

Added in 1.0.0-alpha01
DepthStencilState(
    format: Int = TextureFormat.Undefined,
    depthWriteEnabled: Int = OptionalBool.Undefined,
    depthCompare: Int = CompareFunction.Undefined,
    stencilFront: StencilFaceState = StencilFaceState(),
    stencilBack: StencilFaceState = StencilFaceState(),
    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-alpha01
var depthBiasInt

depthBiasClamp

Added in 1.0.0-alpha01
var depthBiasClampFloat

depthBiasSlopeScale

Added in 1.0.0-alpha01
var depthBiasSlopeScaleFloat

depthCompare

Added in 1.0.0-alpha01
var depthCompareInt

depthWriteEnabled

Added in 1.0.0-alpha01
var depthWriteEnabledInt

format

Added in 1.0.0-alpha01
var formatInt

The texture format of the depth/stencil attachment.

stencilBack

Added in 1.0.0-alpha01
var stencilBackStencilFaceState

stencilFront

Added in 1.0.0-alpha01
var stencilFrontStencilFaceState

stencilReadMask

Added in 1.0.0-alpha01
var stencilReadMaskInt

stencilWriteMask

Added in 1.0.0-alpha01
var stencilWriteMaskInt