Implement the pack_clamp_u8
HLSL Function
#99230
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.
pack_clamp_u8
clang builtin,pack_clamp_u8
clang builtin withhlsl_intrinsics.h
pack_clamp_u8
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
pack_clamp_u8
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/pack_clamp_u8.hlsl
clang/test/SemaHLSL/BuiltIns/pack_clamp_u8-errors.hlsl
int_dx_pack_clamp_u8
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_pack_clamp_u8
to220
inDXIL.td
pack_clamp_u8.ll
andpack_clamp_u8_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_pack_clamp_u8
intrinsic inIntrinsicsSPIRV.td
pack_clamp_u8
lowering and map it toint_spv_pack_clamp_u8
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/pack_clamp_u8.ll
DirectX
SPIR-V
SClamp:
Description:
SClamp
Result is min(max(x, minVal), maxVal), where x, minVal and
maxVal are interpreted as signed integers. Result is undefined if
minVal > maxVal.
Result Type and the type of the operands must both be integer scalar
or integer vector types. Result Type and operand types must have the
same number of components with the same component width. Results are
computed per component.
45
<id>
x
<id>
minVal
<id>
maxVal
Test Case(s)
Example 1
HLSL:
Syntax
p32u8 pack_clamp_u8(sint16or32_only<4> v);
Type Description
Minimum Shader Model
This function is supported in the following shader models.
Shader Stages
See also
The text was updated successfully, but these errors were encountered: