Implement the ddx
HLSL Function
#99096
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.
ddx
clang builtin,ddx
clang builtin withhlsl_intrinsics.h
ddx
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
ddx
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/ddx.hlsl
clang/test/SemaHLSL/BuiltIns/ddx-errors.hlsl
int_dx_ddx
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_ddx
to83
inDXIL.td
ddx.ll
andddx_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_ddx
intrinsic inIntrinsicsSPIRV.td
ddx
lowering and map it toint_spv_ddx
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ddx.ll
DirectX
SPIR-V
OpDPdx:
Description:
Same result as either OpDPdxFine or
OpDPdxCoarse 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
207
<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 x-coordinate.
This function computes the partial derivative with respect to the screen-space x-coordinate. To compute the partial derivative with respect to the screen-space y-coordinate, use the ddy 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: