texCUBEgrad
- Article
-
-
Samples a cube texture using a gradient to select the mip level.
ret texCUBEgrad(s, t, ddx, ddy) |
Parameters
Item |
Description |
s
|
[in] The sampler state.
|
t
|
[in] The texture coordinate.
|
ddx
|
[in] Rate of change of the surface geometry in the x direction.
|
ddy
|
[in] Rate of change of the surface geometry in the y direction.
|
Return Value
The value of the texture data.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
- Significant code reordering is done to move gradient computations outside of flow control.
- If the D3DPSHADERCAPS2_0 cap is set with D3DD3DPSHADERCAPS2_0_GRADIENTINSTRUCTIONS, the compiler maps this function to texldd.
See also
-
Intrinsic Functions (DirectX HLSL)