1spv.460.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 20 5 6 Capability Shader 7 Capability DrawParameters 8 Extension "SPV_KHR_shader_draw_parameters" 9 1: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Vertex 4 "main" 10 12 15 18 19 12 Source GLSL 460 13 Name 4 "main" 14 Name 8 "a" 15 Name 10 "gl_BaseVertex" 16 Name 12 "gl_BaseInstance" 17 Name 15 "gl_DrawID" 18 Name 18 "gl_VertexID" 19 Name 19 "gl_InstanceID" 20 Decorate 10(gl_BaseVertex) BuiltIn BaseVertex 21 Decorate 12(gl_BaseInstance) BuiltIn BaseInstance 22 Decorate 15(gl_DrawID) BuiltIn DrawIndex 23 Decorate 18(gl_VertexID) BuiltIn VertexId 24 Decorate 19(gl_InstanceID) BuiltIn InstanceId 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_BaseVertex): 9(ptr) Variable Input 3112(gl_BaseInstance): 9(ptr) Variable Input 32 15(gl_DrawID): 9(ptr) Variable Input 33 18(gl_VertexID): 9(ptr) Variable Input 3419(gl_InstanceID): 9(ptr) Variable Input 35 4(main): 2 Function None 3 36 5: Label 37 8(a): 7(ptr) Variable Function 38 11: 6(int) Load 10(gl_BaseVertex) 39 13: 6(int) Load 12(gl_BaseInstance) 40 14: 6(int) IAdd 11 13 41 16: 6(int) Load 15(gl_DrawID) 42 17: 6(int) IAdd 14 16 43 Store 8(a) 17 44 Return 45 FunctionEnd 46