• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test: SpvModuleScopeVarParserTest_VertexIndex_I32_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" %gl_Position %gl_VertexIndex
10OpDecorate %gl_Position BuiltIn Position
11OpDecorate %gl_VertexIndex BuiltIn VertexIndex
12%void = OpTypeVoid
13%6 = OpTypeFunction %void
14%float = OpTypeFloat 32
15%uint = OpTypeInt 32 0
16%int = OpTypeInt 32 1
17%_ptr_Input_int = OpTypePointer Input %int
18%gl_VertexIndex = OpVariable %_ptr_Input_int Input
19%v4float = OpTypeVector %float 4
20%_ptr_Output_v4float = OpTypePointer Output %v4float
21%gl_Position = OpVariable %_ptr_Output_v4float Output
22%3 = OpFunction %void None %6
23%13 = OpLabel
24%14 = OpCopyObject %_ptr_Input_int %gl_VertexIndex
25%2 = OpLoad %int %14
26OpReturn
27OpFunctionEnd
28
29