DarkBASIC Professional Help File

DX11:DEPTHSTENCILSTATE

Contains functionality for creating and setting depth/stencil states, which are used to tell DirectX how to do depth and stencil tests.
Depth tests correspond to the functionality exposed by the ENABLE / DISABLE OBJECT ZWRITE / ZREAD commands from standard DBPro. Stencil tests
allow you to use part of the depth buffer for storing per-pixel "stencil" values that can be used to do custom masking of fragment rendering etc.
Depth/stencil states have to be associated with a shader technique in order to be used.

    DX11 CREATE DEPTH STENCIL STATE : Return Dword = DX11 CREATE DEPTH STENCIL STATE()

    DX11 DELETE DEPTH STENCIL STATE : DX11 DELETE DEPTH STENCIL STATE depthStencilState

    DX11 DEPTH STENCIL STATE EXISTS : Return Boolean = DX11 DEPTH STENCIL STATE EXISTS(depthStencilState)

    DX11 SET DEPTH TEST ENABLED : DX11 SET DEPTH TEST ENABLED depthStencilState, enable

    DX11 SET DEPTH WRITE MASK : DX11 SET DEPTH WRITE MASK depthStencilState, mask

    DX11 SET DEPTH TEST FUNCTION : DX11 SET DEPTH TEST FUNCTION depthStencilState, func

    DX11 SET STENCIL TEST ENABLED : DX11 SET STENCIL TEST ENABLED depthStencilState, enable

    DX11 SET STENCIL READ MASK : DX11 SET STENCIL READ MASK depthStencilState, readMask

    DX11 SET STENCIL WRITE MASK : DX11 SET STENCIL WRITE MASK depthStencilState, writeMask

    DX11 SET FRONTFACE STENCIL TEST FUNCTION : DX11 SET FRONTFACE STENCIL TEST FUNCTION depthStencilState, func

    DX11 SET FRONTFACE STENCIL FAIL OPERATION : DX11 SET FRONTFACE STENCIL FAIL OPERATION depthStencilState, stencilOperation

    DX11 SET FRONTFACE STENCIL DEPTH FAIL OPERATION : DX11 SET FRONTFACE STENCIL DEPTH FAIL OPERATION depthStencilState, stencilOperation

    DX11 SET FRONTFACE STENCIL PASS OPERATION : DX11 SET FRONTFACE STENCIL PASS OPERATION depthStencilState, stencilOperation

    DX11 SET BACKFACE STENCIL TEST FUNCTION : DX11 SET BACKFACE STENCIL TEST FUNCTION depthStencilState, func

    DX11 SET BACKFACE STENCIL FAIL OPERATION : DX11 SET BACKFACE STENCIL FAIL OPERATION depthStencilState, stencilOperation

    DX11 SET BACKFACE STENCIL DEPTH FAIL OPERATION : DX11 SET BACKFACE STENCIL DEPTH FAIL OPERATION depthStencilState, stencilOperation

    DX11 SET BACKFACE STENCIL PASS OPERATION : DX11 SET BACKFACE STENCIL PASS OPERATION depthStencilState, stencilOperation