• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvModuleScopeVarParserTest_InstanceIndex_U32_Load_CopyObject.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 15
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Vertex %3 "main" %position %gl_InstanceIndex
10OpName %position "position"
11OpDecorate %position BuiltIn Position
12OpDecorate %gl_InstanceIndex BuiltIn InstanceIndex
13%void = OpTypeVoid
14%6 = OpTypeFunction %void
15%float = OpTypeFloat 32
16%uint = OpTypeInt 32 0
17%int = OpTypeInt 32 1
18%_ptr_Input_uint = OpTypePointer Input %uint
19%gl_InstanceIndex = OpVariable %_ptr_Input_uint Input
20%v4float = OpTypeVector %float 4
21%_ptr_Output_v4float = OpTypePointer Output %v4float
22%position = OpVariable %_ptr_Output_v4float Output
23%3 = OpFunction %void None %6
24%13 = OpLabel
25%14 = OpCopyObject %_ptr_Input_uint %gl_InstanceIndex
26%2 = OpLoad %uint %14
27OpReturn
28OpFunctionEnd
29
30