1spv.100ops.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 49 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 21 26 37 10 ExecutionMode 4 OriginUpperLeft 11 Source ESSL 310 12 Name 4 "main" 13 Name 8 "foo(" 14 Name 11 "face1" 15 Name 13 "face2" 16 Name 17 "z" 17 Name 21 "low" 18 Name 26 "high" 19 Name 37 "Color" 20 Decorate 8(foo() RelaxedPrecision 21 Decorate 11(face1) RelaxedPrecision 22 Decorate 13(face2) RelaxedPrecision 23 Decorate 17(z) RelaxedPrecision 24 Decorate 21(low) RelaxedPrecision 25 Decorate 21(low) Location 0 26 Decorate 22 RelaxedPrecision 27 Decorate 23 RelaxedPrecision 28 Decorate 25 RelaxedPrecision 29 Decorate 26(high) RelaxedPrecision 30 Decorate 26(high) Location 1 31 Decorate 27 RelaxedPrecision 32 Decorate 32 RelaxedPrecision 33 Decorate 34 RelaxedPrecision 34 Decorate 37(Color) RelaxedPrecision 35 Decorate 37(Color) Location 0 36 Decorate 38 RelaxedPrecision 37 Decorate 39 RelaxedPrecision 38 Decorate 40 RelaxedPrecision 39 Decorate 41 RelaxedPrecision 40 Decorate 42 RelaxedPrecision 41 Decorate 43 RelaxedPrecision 42 Decorate 44 RelaxedPrecision 43 Decorate 45 RelaxedPrecision 44 Decorate 46 RelaxedPrecision 45 2: TypeVoid 46 3: TypeFunction 2 47 6: TypeFloat 32 48 7: TypeFunction 6(float) 49 10: TypePointer Private 6(float) 50 11(face1): 10(ptr) Variable Private 51 12: 6(float) Constant 1093664768 52 13(face2): 10(ptr) Variable Private 53 14: 6(float) Constant 3221225472 54 15: TypeInt 32 1 55 16: TypePointer Function 15(int) 56 18: 15(int) Constant 3 57 19: 6(float) Constant 1073741824 58 20: TypePointer Input 6(float) 59 21(low): 20(ptr) Variable Input 60 24: 6(float) Constant 1065353216 61 26(high): 20(ptr) Variable Input 62 28: TypeBool 63 33: 15(int) Constant 1 64 35: TypeVector 6(float) 4 65 36: TypePointer Output 35(fvec4) 66 37(Color): 36(ptr) Variable Output 67 4(main): 2 Function None 3 68 5: Label 69 17(z): 16(ptr) Variable Function 70 Store 11(face1) 12 71 Store 13(face2) 14 72 Store 17(z) 18 73 22: 6(float) Load 21(low) 74 23: 6(float) FMul 19 22 75 25: 6(float) FAdd 23 24 76 27: 6(float) Load 26(high) 77 29: 28(bool) FOrdLessThan 25 27 78 SelectionMerge 31 None 79 BranchConditional 29 30 31 80 30: Label 81 32: 15(int) Load 17(z) 82 34: 15(int) IAdd 32 33 83 Store 17(z) 34 84 Branch 31 85 31: Label 86 38: 6(float) Load 11(face1) 87 39: 15(int) Load 17(z) 88 40: 6(float) ConvertSToF 39 89 41: 35(fvec4) CompositeConstruct 40 40 40 40 90 42: 35(fvec4) VectorTimesScalar 41 38 91 43: 6(float) FunctionCall 8(foo() 92 44: 35(fvec4) CompositeConstruct 43 43 43 43 93 45: 35(fvec4) FAdd 42 44 94 Store 37(Color) 45 95 Return 96 FunctionEnd 97 8(foo(): 6(float) Function None 7 98 9: Label 99 46: 6(float) Load 13(face2) 100 ReturnValue 46 101 FunctionEnd 102