ddx_fine¶
Description¶
Take the fine partial derivative of p with respect to x in screen space.
Signature¶
T ddx_fine<T>(T p) where T : __BuiltinFloatingPointType; vector<T, N> ddx_fine<T, int N>(vector<T, N> p) where T : __BuiltinFloatingPointType; matrix<T, N, M> ddx_fine<T, int N, int M>(matrix<T, N, M> p) where T : __BuiltinFloatingPointType;
Generic Parameters¶
T: __BuiltinFloatingPointType¶
N : int¶
M : int¶
Parameters¶
p : T¶
The value to take partial derivative for.
p : vector<T, N>¶
The value to take partial derivative for.
p : matrix<T, N, M>¶
The value to take partial derivative for.
Return value¶
The partial derivative of p.
Remarks¶
For SPIR-V, this function maps to OpDPdxFine.
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in stages: amplification, fragment, compute, mesh, miss, callable, closesthit, raygen, intersection, anyhit.
glsl¶
Available in stages: amplification, fragment, compute, mesh, miss, callable, closesthit, raygen, intersection, anyhit.
spirv¶
Available in stages: amplification, fragment, compute, mesh, miss, callable, closesthit, raygen, intersection, anyhit.
Requires capabilities: SPV_KHR_compute_shader_derivatives, spvMeshShadingEXT.