DarkBASIC Professional Help File

DX11:RASTERIZERSTATE

Contains functionality for creating and setting rasterizer states, which are used to describe things like filling mode (solid or wireframe), what faces (if any) should be culled, depth biases etc.
Rasterizer states have to be associated with a shader technique in order to be used.

    DX11 CREATE RASTERIZER STATE : Return Dword = DX11 CREATE RASTERIZER STATE()

    DX11 DELETE RASTERIZER STATE : DX11 DELETE RASTERIZER STATE rasterState

    DX11 RASTERIZER STATE EXISTS : Return Boolean = DX11 RASTERIZER STATE EXISTS(rasterState)

    DX11 GET DEFAULT RASTERIZER STATE : Return Dword = DX11 GET DEFAULT RASTERIZER STATE()

    DX11 SET RASTERIZER STATE FILL MODE : DX11 SET RASTERIZER STATE FILL MODE rasterState, fillMode

    DX11 SET RASTERIZER STATE CULL MODE : DX11 SET RASTERIZER STATE CULL MODE rasterState, cullMode

    DX11 SET RASTERIZER STATE CLOCKWISE FRONT FACE : DX11 SET RASTERIZER STATE CLOCKWISE FRONT FACE rasterState, isClockwiseFront

    DX11 SET RASTERIZER STATE DEPTH BIAS : DX11 SET RASTERIZER STATE DEPTH BIAS rasterState, zBias

    DX11 SET RASTERIZER STATE MAX DEPTH BIAS : DX11 SET RASTERIZER STATE MAX DEPTH BIAS rasterState, zBiasClamp

    DX11 SET RASTERIZER STATE SLOPE SCALED DEPTH BIAS : DX11 SET RASTERIZER STATE SLOPE SCALED DEPTH BIAS rasterState, scalar

    DX11 SET RASTERIZER STATE DEPTH CLIPPING ENABLED : DX11 SET RASTERIZER STATE DEPTH CLIPPING ENABLED rasterState, enable

    DX11 SET RASTERIZER STATE ANTIALIASED LINE ENABLED : DX11 SET RASTERIZER STATE ANTIALIASED LINE ENABLED rasterState, enable

    DX11 SET RASTERIZER STATE ALPHA LINE ANTIALIASING ENABLED : DX11 SET RASTERIZER STATE ALPHA LINE ANTIALIASING ENABLED rasterState, useAlphaLineAA