CalculateLevelOfDetail (DirectX HLSL Texture Object)
Calculates the level of detail.
|ret Object.CalculateLevelOfDetail( sampler_state S, float x );|
||Any texture-object type (except Texture2DMS and Texture2DMSArray).
||[in] A Sampler state. This is an object declared in an effect file that contains state assignments.
||[in] The linear interpolation value or values, which is a floating-point number between 0.0 and 1.0 inclusive. The number of components is dependent on the texture-object type.
Returns the calculated LOD, a single floating-point value.
Minimum Shader Model
This function is supported in the following shader models.
- TextureCubeArray is available in Shader Model 4.1 or higher.
- Shader Model 4.1 is available in Direct3D 10.1 or higher.