DarkBASIC Professional Help File

DX11 SET SAMPLER STATE

Sets the sampler state of the given shader technique.
Up to 12 custom sampler states can be set to be used by any single shader technique.
Can be changed during runtime. Setting the sampler state parameter to nullptr will remove any previously set sampler state bound to the given stage.

Syntax

    DX11 SET SAMPLER STATE shaderTechnique, stage, samplerState

Parameters

    shaderTechnique

> Dword
> The shader technique to set the sampler state of.

    stage

> Dword
> The texture input stage to set the sampler state for (the valid range is [0..11]).

    samplerState

> Dword
> The sampler state to set.

Returns

This function does not return a value.

See also

SHADERTECHNIQUE Functions Menu
DX11 Function Categories