Home | History | Annotate | Download | only in baseResults
      1 spv.drawParams.vert
      2 // Module Version 10300
      3 // Generated by (magic number): 80007
      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                2:             TypeVoid
     25                3:             TypeFunction 2
     26                6:             TypeInt 32 1
     27                7:             TypePointer Function 6(int)
     28                9:             TypePointer Input 6(int)
     29 10(gl_BaseVertexARB):      9(ptr) Variable Input
     30 13(gl_BaseInstanceARB):      9(ptr) Variable Input
     31 16(gl_DrawIDARB):      9(ptr) Variable Input
     32               18:             TypeFloat 32
     33               19:             TypeVector 18(float) 3
     34               20:             TypePointer Output 19(fvec3)
     35          21(pos):     20(ptr) Variable Output
     36          4(main):           2 Function None 3
     37                5:             Label
     38             8(a):      7(ptr) Variable Function
     39            12(b):      7(ptr) Variable Function
     40            15(c):      7(ptr) Variable Function
     41               11:      6(int) Load 10(gl_BaseVertexARB)
     42                               Store 8(a) 11
     43               14:      6(int) Load 13(gl_BaseInstanceARB)
     44                               Store 12(b) 14
     45               17:      6(int) Load 16(gl_DrawIDARB)
     46                               Store 15(c) 17
     47               22:      6(int) Load 8(a)
     48               23:   18(float) ConvertSToF 22
     49               24:      6(int) Load 12(b)
     50               25:   18(float) ConvertSToF 24
     51               26:      6(int) Load 15(c)
     52               27:   18(float) ConvertSToF 26
     53               28:   19(fvec3) CompositeConstruct 23 25 27
     54                               Store 21(pos) 28
     55                               Return
     56                               FunctionEnd
     57