ddy_coarse
Description
Take the coarse partial derivative of p with respect to y in screen space.
Signature
T ddy_coarse<T>(T p) where T : __BuiltinFloatingPointType; vector<T, N> ddy_coarse<T, N:int>(vector<T, N> p) where T : __BuiltinFloatingPointType; matrix<T, N, M> ddy_coarse<T, N:int, M:int>(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 OpDPdyCoarse.
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: amplification
, fragment
, compute
, mesh
, miss
, callable
, raygen
, intersection
, anyhit
, closesthit
.
glsl
Available in stages: amplification
, fragment
, compute
, mesh
, miss
, callable
, raygen
, intersection
, anyhit
, closesthit
.
spirv
Available in stages: amplification
, fragment
, compute
, mesh
, miss
, callable
, raygen
, intersection
, anyhit
, closesthit
.
Requires capabilities: SPV_NV_compute_shader_derivatives
, spvMeshShadingEXT
.