1spv.drawParams.vert
2// Module Version 10300
3// Generated by (magic number): 8000a
4// Id's are bound by 29
5
6                              Capability Shader
7                              Capability DrawParameters
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Vertex 4  "main" 10 13 16 21
11                              Source GLSL 450
12                              SourceExtension  "GL_ARB_shader_draw_parameters"
13                              Name 4  "main"
14                              Name 8  "a"
15                              Name 10  "gl_BaseVertexARB"
16                              Name 12  "b"
17                              Name 13  "gl_BaseInstanceARB"
18                              Name 15  "c"
19                              Name 16  "gl_DrawIDARB"
20                              Name 21  "pos"
21                              Decorate 10(gl_BaseVertexARB) BuiltIn BaseVertex
22                              Decorate 13(gl_BaseInstanceARB) BuiltIn BaseInstance
23                              Decorate 16(gl_DrawIDARB) BuiltIn DrawIndex
24                              Decorate 21(pos) Location 0
25               2:             TypeVoid
26               3:             TypeFunction 2
27               6:             TypeInt 32 1
28               7:             TypePointer Function 6(int)
29               9:             TypePointer Input 6(int)
3010(gl_BaseVertexARB):      9(ptr) Variable Input
3113(gl_BaseInstanceARB):      9(ptr) Variable Input
3216(gl_DrawIDARB):      9(ptr) Variable Input
33              18:             TypeFloat 32
34              19:             TypeVector 18(float) 3
35              20:             TypePointer Output 19(fvec3)
36         21(pos):     20(ptr) Variable Output
37         4(main):           2 Function None 3
38               5:             Label
39            8(a):      7(ptr) Variable Function
40           12(b):      7(ptr) Variable Function
41           15(c):      7(ptr) Variable Function
42              11:      6(int) Load 10(gl_BaseVertexARB)
43                              Store 8(a) 11
44              14:      6(int) Load 13(gl_BaseInstanceARB)
45                              Store 12(b) 14
46              17:      6(int) Load 16(gl_DrawIDARB)
47                              Store 15(c) 17
48              22:      6(int) Load 8(a)
49              23:   18(float) ConvertSToF 22
50              24:      6(int) Load 12(b)
51              25:   18(float) ConvertSToF 24
52              26:      6(int) Load 15(c)
53              27:   18(float) ConvertSToF 26
54              28:   19(fvec3) CompositeConstruct 23 25 27
55                              Store 21(pos) 28
56                              Return
57                              FunctionEnd
58