Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Samples a cube texture using a gradient to select the mip level.
ret texCUBEgrad(s, t, ddx, ddy) |
---|
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. |
The value of the texture data.
Name | In/Out | Template Type | Component Type | Size |
---|---|---|---|---|
s | in | object | samplerCUBE | 1 |
t | in | vector | float | 3 |
ddx | in | vector | float | 3 |
ddy | in | vector | float | 3 |
ret | out | vector | float | 4 |
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 4 | yes (pixel shader only) |
Shader Model 3 (DirectX HLSL) | yes (pixel shader only) |
Shader Model 2 (DirectX HLSL) | yes (pixel shader only) |
Shader Model 1 (DirectX HLSL) | no |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today