1spv.pushConstant.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 35 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Vertex 4 "main" 24 10 Source GLSL 400 11 Name 4 "main" 12 Name 11 "Material" 13 MemberName 11(Material) 0 "kind" 14 MemberName 11(Material) 1 "fa" 15 Name 13 "matInst" 16 Name 24 "color" 17 Decorate 10 ArrayStride 4 18 MemberDecorate 11(Material) 0 Offset 0 19 MemberDecorate 11(Material) 1 Offset 4 20 Decorate 11(Material) Block 21 Decorate 24(color) Location 0 22 2: TypeVoid 23 3: TypeFunction 2 24 6: TypeInt 32 1 25 7: TypeFloat 32 26 8: TypeInt 32 0 27 9: 8(int) Constant 3 28 10: TypeArray 7(float) 9 29 11(Material): TypeStruct 6(int) 10 30 12: TypePointer PushConstant 11(Material) 31 13(matInst): 12(ptr) Variable PushConstant 32 14: 6(int) Constant 0 33 15: TypePointer PushConstant 6(int) 34 22: TypeVector 7(float) 4 35 23: TypePointer Output 22(fvec4) 36 24(color): 23(ptr) Variable Output 37 25: 7(float) Constant 1045220557 38 26: 22(fvec4) ConstantComposite 25 25 25 25 39 28: 7(float) Constant 1056964608 40 29: 22(fvec4) ConstantComposite 28 28 28 28 41 31: 7(float) Constant 0 42 32: 22(fvec4) ConstantComposite 31 31 31 31 43 4(main): 2 Function None 3 44 5: Label 45 16: 15(ptr) AccessChain 13(matInst) 14 46 17: 6(int) Load 16 47 SelectionMerge 21 None 48 Switch 17 20 49 case 1: 18 50 case 2: 19 51 20: Label 52 Store 24(color) 32 53 Branch 21 54 18: Label 55 Store 24(color) 26 56 Branch 21 57 19: Label 58 Store 24(color) 29 59 Branch 21 60 21: Label 61 Return 62 FunctionEnd 63