Implement the ddx_coarse
HLSL Function
#99097
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_coarse
clang builtin,ddx_coarse
clang builtin withhlsl_intrinsics.h
ddx_coarse
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
ddx_coarse
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/ddx_coarse.hlsl
clang/test/SemaHLSL/BuiltIns/ddx_coarse-errors.hlsl
int_dx_ddx_coarse
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_ddx_coarse
to83
inDXIL.td
ddx_coarse.ll
andddx_coarse_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_ddx_coarse
intrinsic inIntrinsicsSPIRV.td
ddx_coarse
lowering and map it toint_spv_ddx_coarse
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/ddx_coarse.ll
DirectX
SPIR-V
OpDPdxCoarse:
Description:
Result is the partial derivative of P with respect to the window x
coordinate. Uses local differencing based on the value of P for the
current fragment’s neighbors, and possibly, but not necessarily,
includes the value of P for the current fragment. That is, over a
given area, the implementation can compute x derivatives in fewer
unique locations than would be allowed for
OpDPdxFine.
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:
DerivativeControl
4
213
<id>
Result Type
Result <id>
<id>
P
Test Case(s)
Example 1
HLSL:
Computes a low precision partial derivative with respect to the screen-space x-coordinate.
Syntax
Parameters
value [in]
Type: float
The input value.
Return value
Type: float
The low precision partial derivative of value.
Remarks
The following overloaded versions are also available:
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
Shader Model 5
The text was updated successfully, but these errors were encountered: