Implement the modf
HLSL Function
#99136
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.
modf
clang builtin,modf
clang builtin withhlsl_intrinsics.h
modf
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
modf
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/modf.hlsl
clang/test/SemaHLSL/BuiltIns/modf-errors.hlsl
int_dx_modf
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_modf
to29
inDXIL.td
modf.ll
andmodf_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_modf
intrinsic inIntrinsicsSPIRV.td
modf
lowering and map it toint_spv_modf
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/modf.ll
DirectX
SPIR-V
ModfStruct:
Description:
ModfStruct
Same semantics as in Modf, except that the entire result is in the
instruction’s result; there is not a pointer operand to write through.
Result Type must be an OpTypeStruct with two members. Member 0
holds the fractional part. Member 1 holds the whole number part. These
two members, and the Result Type must all have the same type. This
structure type must be explicitly declared by the module.
36
<id>
x
Test Case(s)
Example 1
HLSL:
Splits the value x into fractional and integer parts, each of which has the same sign as x.
Parameters
Return Value
The signed-fractional portion of x.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
Requirements
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: