DarkBASIC Professional Help File

DX11:SHADERTECHNIQUE

A shader technique contains blend, rasterizer and sampler states as well as a set of shaders (vertex and pixel shaders are mandatory, while hull, domain and geometry shaders are optional)
that together describe how to draw meshes that use said shader technique. Can be viewed as analogous to an "effect" from DX9.

    DX11 CREATE SHADER TECHNIQUE : Return Dword shadertechnique = DX11 CREATE SHADER TECHNIQUE(vertLayout, vertexShader, pixelShader, [geometryShader], [hullShader], [domainShader])

    DX11 DELETE SHADER TECHNIQUE : DX11 DELETE SHADER TECHNIQUE shaderTechnique

    DX11 SHADER TECHNIQUE EXISTS : Return Boolean = DX11 SHADER TECHNIQUE EXISTS(shaderTechnique)

    DX11 SET VERTEX SHADER : DX11 SET VERTEX SHADER shaderTechnique, vertLayout, vertexShader

    DX11 SET PIXEL SHADER : DX11 SET PIXEL SHADER shaderTechnique, pixelShader

    DX11 SET GEOMETRY SHADER : DX11 SET GEOMETRY SHADER shaderTechnique, geometryShader

    DX11 SET TESSELLATION SHADERS : DX11 SET TESSELLATION SHADERS shaderTechnique, hullShader, domainShader

    DX11 SET RASTERIZER STATE : DX11 SET RASTERIZER STATE shaderTechnique, rasterState

    DX11 SET BLEND STATE : DX11 SET BLEND STATE shaderTechnique, blendState

    DX11 SET DEPTH STENCIL STATE : DX11 SET DEPTH STENCIL STATE shaderTechnique, depthStencilState

    DX11 SET SAMPLER STATE : DX11 SET SAMPLER STATE shaderTechnique, stage, samplerState

    DX11 ADD CONSTANT BUFFER : DX11 ADD CONSTANT BUFFER shaderTechnique, cbuffer

    DX11 SET CONSTANT BUFFER : DX11 SET CONSTANT BUFFER shaderTechnique, stage, cbuffer

    DX11 GET VERTEX LAYOUT : Return Dword = DX11 GET VERTEX LAYOUT(shaderTechnique)

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

    DX11 GET BLEND STATE : Return Dword = DX11 GET BLEND STATE(shaderTechnique)

    DX11 GET SAMPLER STATE : Return Dword = DX11 GET SAMPLER STATE(shaderTechnique, stage)