1spv.300BuiltIns.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 42 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Vertex 4 "main" 10 14 21 34 10 Source ESSL 310 11 Name 4 "main" 12 Name 8 "gl_PerVertex" 13 MemberName 8(gl_PerVertex) 0 "gl_Position" 14 MemberName 8(gl_PerVertex) 1 "gl_PointSize" 15 Name 10 "" 16 Name 14 "ps" 17 Name 21 "gl_VertexIndex" 18 Name 34 "gl_InstanceIndex" 19 MemberDecorate 8(gl_PerVertex) 0 Invariant 20 MemberDecorate 8(gl_PerVertex) 0 BuiltIn Position 21 MemberDecorate 8(gl_PerVertex) 1 BuiltIn PointSize 22 Decorate 8(gl_PerVertex) Block 23 Decorate 14(ps) RelaxedPrecision 24 Decorate 14(ps) Location 0 25 Decorate 15 RelaxedPrecision 26 Decorate 21(gl_VertexIndex) BuiltIn VertexIndex 27 Decorate 30 RelaxedPrecision 28 Decorate 34(gl_InstanceIndex) BuiltIn InstanceIndex 29 2: TypeVoid 30 3: TypeFunction 2 31 6: TypeFloat 32 32 7: TypeVector 6(float) 4 33 8(gl_PerVertex): TypeStruct 7(fvec4) 6(float) 34 9: TypePointer Output 8(gl_PerVertex) 35 10: 9(ptr) Variable Output 36 11: TypeInt 32 1 37 12: 11(int) Constant 0 38 13: TypePointer Input 6(float) 39 14(ps): 13(ptr) Variable Input 40 17: TypePointer Output 7(fvec4) 41 19: 11(int) Constant 4 42 20: TypePointer Input 11(int) 4321(gl_VertexIndex): 20(ptr) Variable Input 44 29: 11(int) Constant 1 45 31: TypePointer Output 6(float) 46 33: 11(int) Constant 5 4734(gl_InstanceIndex): 20(ptr) Variable Input 48 4(main): 2 Function None 3 49 5: Label 50 15: 6(float) Load 14(ps) 51 16: 7(fvec4) CompositeConstruct 15 15 15 15 52 18: 17(ptr) AccessChain 10 12 53 Store 18 16 54 22: 11(int) Load 21(gl_VertexIndex) 55 23: 11(int) ISub 19 22 56 24: 6(float) ConvertSToF 23 57 25: 17(ptr) AccessChain 10 12 58 26: 7(fvec4) Load 25 59 27: 7(fvec4) VectorTimesScalar 26 24 60 28: 17(ptr) AccessChain 10 12 61 Store 28 27 62 30: 6(float) Load 14(ps) 63 32: 31(ptr) AccessChain 10 29 64 Store 32 30 65 35: 11(int) Load 34(gl_InstanceIndex) 66 36: 11(int) ISub 33 35 67 37: 6(float) ConvertSToF 36 68 38: 31(ptr) AccessChain 10 29 69 39: 6(float) Load 38 70 40: 6(float) FMul 39 37 71 41: 31(ptr) AccessChain 10 29 72 Store 41 40 73 Return 74 FunctionEnd 75