StencilStyle
data class StencilStyle(var stencilFailOperation: StencilOperation = StencilOperation.KEEP, var depthFailOperation: StencilOperation = StencilOperation.KEEP, var depthPassOperation: StencilOperation = StencilOperation.KEEP, var stencilTestMask: Int = 255, var stencilTestReference: Int = 0, var stencilWriteMask: Int = 255, var stencilTest: StencilTest = StencilTest.DISABLED)(source)
Represents a style for stencil operations and tests used in rendering pipelines.
This class defines the operations to perform based on different stencil and depth test scenarios, as well as parameters to configure the stencil test and operation behavior.
Constructors
Link copied to clipboard
constructor(stencilFailOperation: StencilOperation = StencilOperation.KEEP, depthFailOperation: StencilOperation = StencilOperation.KEEP, depthPassOperation: StencilOperation = StencilOperation.KEEP, stencilTestMask: Int = 255, stencilTestReference: Int = 0, stencilWriteMask: Int = 255, stencilTest: StencilTest = StencilTest.DISABLED)
Properties
Link copied to clipboard
Operation to perform when the depth test fails after passing the stencil test.
Link copied to clipboard
Operation to perform when both stencil and depth tests pass.
Link copied to clipboard
Operation to perform when the stencil test fails.
Link copied to clipboard
Specifies the stencil test function to use.
Link copied to clipboard
Mask to apply during stencil testing.
Link copied to clipboard
Reference value to compare with during stencil testing.
Link copied to clipboard
Mask to apply while writing to the stencil buffer.
Functions
Link copied to clipboard
Link copied to clipboard
fun stencilOp(onStencilTestFail: StencilOperation, onDepthTestFail: StencilOperation, onDepthTestPass: StencilOperation)