DarkBASIC Professional Help File

DX11 SET SAMPLER STATE LOD

Sets the minimum and maximum mipmaps that the associated shader can access.
0 represents the most detailed mipmap and higher values successively less detailed maps.
You can set the min value to a very large negative and the max value to a very large positive value
to ensure that all mip maps are used no matter how many you have, which is the default for a newly
created sampler state.

Syntax

    DX11 SET SAMPLER STATE LOD samplerState, minLOD, maxLOD

Parameters

    samplerState

> Dword
> The sampler state to set the mip map level of detail range for.

    minLOD

> Float
> The lower end of the mipmap range to clamp access to.

    maxLOD

> Float
> The upper end of the mipmap range to clamp access to.

Returns

This function does not return a value.

See also

SAMPLERSTATE Functions Menu
DX11 Function Categories