Implement the GetAttributeAtVertex
HLSL Function
#99201
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.
GetAttributeAtVertex
clang builtin,GetAttributeAtVertex
clang builtin withhlsl_intrinsics.h
GetAttributeAtVertex
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
GetAttributeAtVertex
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/GetAttributeAtVertex.hlsl
clang/test/SemaHLSL/BuiltIns/GetAttributeAtVertex-errors.hlsl
int_dx_GetAttributeAtVertex
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_GetAttributeAtVertex
to137
inDXIL.td
GetAttributeAtVertex.ll
andGetAttributeAtVertex_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_GetAttributeAtVertex
intrinsic inIntrinsicsSPIRV.td
GetAttributeAtVertex
lowering and map it toint_spv_GetAttributeAtVertex
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/GetAttributeAtVertex.ll
DirectX
SPIR-V
OpAccessChain:
Description:
Create a pointer into a composite object.
Result Type must be an OpTypePointer. Its Type
operand must be the type reached by walking the Base’s type hierarchy
down to the last provided index in Indexes, and its Storage Class
operand must be the same as the Storage Class of Base.
Base must be a pointer, pointing to the base of a composite object.
Indexes walk the type hierarchy to the desired depth, potentially down
to scalar granularity. The first index in Indexes selects the
top-level member/element/component/element of the base composite. All
composite constituents use zero-based numbering, as described by their
OpType… instruction. The second index applies similarly to that
result, and so on. Once any non-composite type is reached, there must be
no remaining (unused) indexes.
Each index in Indexes
whose value is in bounds for selecting a member
being a logical pointer type, causes undefined
behavior if not in bounds.
4 + variable
65
<id>
Result Type
Result <id>
<id>
Base
<id>, <id>, …
Indexes
Test Case(s)
Example 1
Example 2
Example 3
HLSL:
Syntax
numeric<> GetAttributeAtVertex(numeric<> value, uint VertexID);
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: