• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Vertex %main "main" %3 %pos
5OpName %sk_PerVertex "sk_PerVertex"
6OpMemberName %sk_PerVertex 0 "sk_Position"
7OpMemberName %sk_PerVertex 1 "sk_PointSize"
8OpName %pos "pos"
9OpName %main "main"
10OpMemberDecorate %sk_PerVertex 0 BuiltIn Position
11OpMemberDecorate %sk_PerVertex 1 BuiltIn PointSize
12OpDecorate %sk_PerVertex Block
13OpDecorate %pos Location 0
14%float = OpTypeFloat 32
15%v4float = OpTypeVector %float 4
16%sk_PerVertex = OpTypeStruct %v4float %float
17%_ptr_Output_sk_PerVertex = OpTypePointer Output %sk_PerVertex
18%3 = OpVariable %_ptr_Output_sk_PerVertex Output
19%_ptr_Input_v4float = OpTypePointer Input %v4float
20%pos = OpVariable %_ptr_Input_v4float Input
21%void = OpTypeVoid
22%11 = OpTypeFunction %void
23%int = OpTypeInt 32 1
24%int_0 = OpConstant %int 0
25%_ptr_Output_v4float = OpTypePointer Output %v4float
26%main = OpFunction %void None %11
27%12 = OpLabel
28%13 = OpLoad %v4float %pos
29%16 = OpAccessChain %_ptr_Output_v4float %3 %int_0
30OpStore %16 %13
31OpReturn
32OpFunctionEnd
33