591 B
591 B
Derivatives In Compute
An entry point may be decorated with [DerivativeGroupQuad] or [DerivativeGroupLinear] to specify how to use derivatives in compute shaders.
GLSL syntax may also be used, but is not recommended (derivative_group_quadsNV/derivative_group_linearNV).
Targets:
- SPIRV: Enables
DerivativeGroupQuadsNVorDerivativeGroupLinearNV. - GLSL: Enables
derivative_group_quadsNVorderivative_group_LinearNV. - HLSL: Does nothing.
sm_6_6is required to use derivatives in compute shaders. HLSL uses an equivalent ofDerivativeGroupQuad.