• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Vertex %main "main" %sk_VertexID %id
5OpName %sk_VertexID "sk_VertexID"
6OpName %id "id"
7OpName %main "main"
8OpDecorate %sk_VertexID BuiltIn VertexIndex
9OpDecorate %id Location 1
10%int = OpTypeInt 32 1
11%_ptr_Input_int = OpTypePointer Input %int
12%sk_VertexID = OpVariable %_ptr_Input_int Input
13%_ptr_Output_int = OpTypePointer Output %int
14%id = OpVariable %_ptr_Output_int Output
15%void = OpTypeVoid
16%9 = OpTypeFunction %void
17%main = OpFunction %void None %9
18%10 = OpLabel
19%11 = OpLoad %int %sk_VertexID
20OpStore %id %11
21OpReturn
22OpFunctionEnd
23