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