Implement the ddy
HLSL Function
#99099
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
ddy
clang builtin,ddy
clang builtin withhlsl_intrinsics.h
ddy
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
ddy
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/ddy.hlsl
clang/test/SemaHLSL/BuiltIns/ddy-errors.hlsl
int_dx_ddy
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_ddy
to84
inDXIL.td
ddy.ll
andddy_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_ddy
intrinsic inIntrinsicsSPIRV.td
ddy
lowering and map it toint_spv_ddy
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ddy.ll
DirectX
SPIR-V
OpDPdy:
Description:
Same result as either OpDPdyFine or
OpDPdyCoarse on P. Selection of which one is
based on external factors.
Result Type must be a scalar or vector of floating-point
type using the IEEE 754 encoding. The component width must
be 32 bits.
The type of P must be the same as Result Type. P is the value to
take the derivative of.
This instruction is only valid in the Fragment Execution
Model.
Capability:
Shader
4
208
<id>
Result Type
Result <id>
<id>
P
Test Case(s)
Example 1
HLSL:
Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.
This function computes the partial derivative with respect to the screen-space y-coordinate. To compute the partial derivative with respect to the screen-space x-coordinate, use the ddx function.
This function is only supported in pixel shaders.
Parameters
Return Value
The partial derivative of the x parameter.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
This function is supported in the following types of shaders:
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: