fwidth_fine¶
Description¶
Texture filter width (fine). Calculates the sum abs(ddx_fine(p)) + abs(ddy_fine(p)).
Signature¶
T fwidth_fine<T>(T p) where T : __BuiltinFloatingPointType; vector<T, N> fwidth_fine<T, int N>(vector<T, N> x) where T : __BuiltinFloatingPointType; matrix<T, N, M> fwidth_fine<T, int N, int M>(matrix<T, N, M> x) where T : __BuiltinFloatingPointType;
Generic Parameters¶
T: __BuiltinFloatingPointType¶
N : int¶
M : int¶
Parameters¶
p : T¶
The value to sum x and y partial derivative magnitudes for.
x : vector<T, N>¶
x : matrix<T, N, M>¶
Return value¶
Remarks¶
For SPIR-V, this function maps to OpFwidthFine.
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.