Implement the pack_s8
HLSL Function
#99227
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_s8
clang builtin,pack_s8
clang builtin withhlsl_intrinsics.h
pack_s8
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
pack_s8
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/pack_s8.hlsl
clang/test/SemaHLSL/BuiltIns/pack_s8-errors.hlsl
int_dx_pack_s8
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_pack_s8
to220
inDXIL.td
pack_s8.ll
andpack_s8_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_pack_s8
intrinsic inIntrinsicsSPIRV.td
pack_s8
lowering and map it toint_spv_pack_s8
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/pack_s8.ll
DirectX
SPIR-V
OpBitcast:
Description:
Bit pattern-preserving type conversion.
Result Type must be an OpTypePointer, or a
scalar or vector of numerical-type.
Operand must have a type of OpTypePointer, or a
scalar or vector of numerical-type. It must be a
different type than Result Type.
Before version 1.5: If either Result Type or Operand is a
pointer, the other must be a pointer or an integer scalar.
Starting with version 1.5: If either Result Type or Operand is a
pointer, the other must be a pointer, an integer scalar, or an integer
vector.
If both Result Type and the type of Operand are pointers, they both
must point into same storage class.
Behavior is undefined if the storage class of Result
Type does not match the one used by the operation that produced the
value of Operand.
If Result Type has the same number of components as Operand, they
must also have the same component width, and results are computed per
component.
If Result Type has a different number of components than Operand,
the total number of bits in Result Type must equal the total number of
bits in Operand. Let L be the type, either Result Type or
Operand’s type, that has the larger number of components. Let S be
the other type, with the smaller number of components. The number of
components in L must be an integer multiple of the number of
components in S. The first component (that is, the only or
lowest-numbered component) of S maps to the first components of L,
and so on, up to the last component of S mapping to the last
components of L. Within this mapping, any single component of S
(mapping to multiple components of L) maps its lower-ordered bits to
the lower-numbered components of L.
4
124
<id>
Result Type
Result <id>
<id>
Operand
Test Case(s)
Example 1
HLSL:
Syntax
p32i8 pack_s8(any_int16or32<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: