DepthStencilState

data class DepthStencilState(val format: TextureFormat, val depthWriteEnabled: Boolean? = null, val depthCompare: CompareFunction? = null, val stencilFront: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), val stencilBack: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), val stencilReadMask: GPUStencilValue, val stencilWriteMask: GPUStencilValue, val depthBias: GPUDepthBias = 0, val depthBiasSlopeScale: Float = 0.0f, val depthBiasClamp: Float = 0.0f)

Constructors

Link copied to clipboard
constructor(format: TextureFormat, depthWriteEnabled: Boolean? = null, depthCompare: CompareFunction? = null, stencilFront: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), stencilBack: RenderPipelineDescriptor.DepthStencilState.StencilFaceState = StencilFaceState(), stencilReadMask: GPUStencilValue, stencilWriteMask: GPUStencilValue, depthBias: GPUDepthBias = 0, depthBiasSlopeScale: Float = 0.0f, depthBiasClamp: Float = 0.0f)

Types

Link copied to clipboard
data class StencilFaceState(val compare: CompareFunction = CompareFunction.Always, val failOp: StencilOperation = StencilOperation.Keep, val depthFailOp: StencilOperation = StencilOperation.Keep, val passOp: StencilOperation = StencilOperation.Keep)

Properties

Link copied to clipboard
Link copied to clipboard
val depthBiasClamp: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard