1spv.shaderDrawParams.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 53 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" 9 16 29 37 12 Source GLSL 450 13 SourceExtension "GL_ARB_shader_draw_parameters" 14 Name 4 "main" 15 Name 9 "gl_BaseVertexARB" 16 Name 16 "gl_BaseInstanceARB" 17 Name 27 "gl_PerVertex" 18 MemberName 27(gl_PerVertex) 0 "gl_Position" 19 MemberName 27(gl_PerVertex) 1 "gl_PointSize" 20 MemberName 27(gl_PerVertex) 2 "gl_ClipDistance" 21 MemberName 27(gl_PerVertex) 3 "gl_CullDistance" 22 Name 29 "" 23 Name 34 "Block" 24 MemberName 34(Block) 0 "pos" 25 Name 36 "block" 26 Name 37 "gl_DrawIDARB" 27 Decorate 9(gl_BaseVertexARB) BuiltIn BaseVertex 28 Decorate 16(gl_BaseInstanceARB) BuiltIn BaseInstance 29 MemberDecorate 27(gl_PerVertex) 0 BuiltIn Position 30 MemberDecorate 27(gl_PerVertex) 1 BuiltIn PointSize 31 MemberDecorate 27(gl_PerVertex) 2 BuiltIn ClipDistance 32 MemberDecorate 27(gl_PerVertex) 3 BuiltIn CullDistance 33 Decorate 27(gl_PerVertex) Block 34 Decorate 31 ArrayStride 16 35 Decorate 33 ArrayStride 64 36 MemberDecorate 34(Block) 0 Offset 0 37 Decorate 34(Block) Block 38 Decorate 36(block) DescriptorSet 0 39 Decorate 36(block) Binding 0 40 Decorate 37(gl_DrawIDARB) BuiltIn DrawIndex 41 2: TypeVoid 42 3: TypeFunction 2 43 6: TypeBool 44 7: TypeInt 32 1 45 8: TypePointer Input 7(int) 469(gl_BaseVertexARB): 8(ptr) Variable Input 47 11: 7(int) Constant 0 4816(gl_BaseInstanceARB): 8(ptr) Variable Input 49 22: TypeFloat 32 50 23: TypeVector 22(float) 4 51 24: TypeInt 32 0 52 25: 24(int) Constant 1 53 26: TypeArray 22(float) 25 5427(gl_PerVertex): TypeStruct 23(fvec4) 22(float) 26 26 55 28: TypePointer Output 27(gl_PerVertex) 56 29: 28(ptr) Variable Output 57 30: 24(int) Constant 4 58 31: TypeArray 23(fvec4) 30 59 32: 24(int) Constant 2 60 33: TypeArray 31 32 61 34(Block): TypeStruct 33 62 35: TypePointer Uniform 34(Block) 63 36(block): 35(ptr) Variable Uniform 6437(gl_DrawIDARB): 8(ptr) Variable Input 65 39: 7(int) Constant 4 66 41: TypePointer Uniform 23(fvec4) 67 44: TypePointer Output 23(fvec4) 68 47: 7(int) Constant 1 69 4(main): 2 Function None 3 70 5: Label 71 10: 7(int) Load 9(gl_BaseVertexARB) 72 12: 6(bool) SGreaterThan 10 11 73 13: 6(bool) LogicalNot 12 74 SelectionMerge 15 None 75 BranchConditional 13 14 15 76 14: Label 77 17: 7(int) Load 16(gl_BaseInstanceARB) 78 18: 6(bool) SGreaterThan 17 11 79 Branch 15 80 15: Label 81 19: 6(bool) Phi 12 5 18 14 82 SelectionMerge 21 None 83 BranchConditional 19 20 46 84 20: Label 85 38: 7(int) Load 37(gl_DrawIDARB) 86 40: 7(int) SMod 38 39 87 42: 41(ptr) AccessChain 36(block) 11 11 40 88 43: 23(fvec4) Load 42 89 45: 44(ptr) AccessChain 29 11 90 Store 45 43 91 Branch 21 92 46: Label 93 48: 7(int) Load 37(gl_DrawIDARB) 94 49: 7(int) SMod 48 39 95 50: 41(ptr) AccessChain 36(block) 11 47 49 96 51: 23(fvec4) Load 50 97 52: 44(ptr) AccessChain 29 11 98 Store 52 51 99 Branch 21 100 21: Label 101 Return 102 FunctionEnd 103