blob: d2b8f3e8042d7b95b4c0279c0d02bdabd91997c1 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.100ops.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenich31c33702019-11-02 21:26:40 -06003// Generated by (magic number): 80008
John Kessenich6c292d32016-02-15 20:58:50 -07004// Id's are bound by 49
John Kessenichcc16fa02015-12-10 18:01:54 -07005
6 Capability Shader
7 1: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
John Kessenich6c292d32016-02-15 20:58:50 -07009 EntryPoint Fragment 4 "main" 21 26 37
10 ExecutionMode 4 OriginUpperLeft
John Kessenichf6eae2a2016-01-22 17:47:22 -070011 Source ESSL 310
John Kessenichcc16fa02015-12-10 18:01:54 -070012 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"
John Kessenich6c292d32016-02-15 20:58:50 -070019 Name 37 "Color"
John Kessenich32cfd492016-02-02 12:37:46 -070020 Decorate 8(foo() RelaxedPrecision
John Kessenichcc16fa02015-12-10 18:01:54 -070021 Decorate 11(face1) RelaxedPrecision
22 Decorate 13(face2) RelaxedPrecision
23 Decorate 17(z) RelaxedPrecision
24 Decorate 21(low) RelaxedPrecision
John Kessenich32cfd492016-02-02 12:37:46 -070025 Decorate 22 RelaxedPrecision
26 Decorate 23 RelaxedPrecision
27 Decorate 25 RelaxedPrecision
John Kessenichcc16fa02015-12-10 18:01:54 -070028 Decorate 26(high) RelaxedPrecision
John Kessenich32cfd492016-02-02 12:37:46 -070029 Decorate 27 RelaxedPrecision
30 Decorate 32 RelaxedPrecision
John Kessenich6c292d32016-02-15 20:58:50 -070031 Decorate 34 RelaxedPrecision
32 Decorate 37(Color) RelaxedPrecision
John Kessenich32cfd492016-02-02 12:37:46 -070033 Decorate 38 RelaxedPrecision
34 Decorate 39 RelaxedPrecision
35 Decorate 40 RelaxedPrecision
36 Decorate 41 RelaxedPrecision
37 Decorate 42 RelaxedPrecision
38 Decorate 43 RelaxedPrecision
39 Decorate 44 RelaxedPrecision
40 Decorate 45 RelaxedPrecision
John Kessenich6c292d32016-02-15 20:58:50 -070041 Decorate 46 RelaxedPrecision
John Kessenichcc16fa02015-12-10 18:01:54 -070042 2: TypeVoid
43 3: TypeFunction 2
44 6: TypeFloat 32
45 7: TypeFunction 6(float)
46 10: TypePointer Private 6(float)
47 11(face1): 10(ptr) Variable Private
48 12: 6(float) Constant 1093664768
49 13(face2): 10(ptr) Variable Private
50 14: 6(float) Constant 3221225472
51 15: TypeInt 32 1
52 16: TypePointer Function 15(int)
53 18: 15(int) Constant 3
John Kessenich6c292d32016-02-15 20:58:50 -070054 19: 6(float) Constant 1073741824
55 20: TypePointer Input 6(float)
56 21(low): 20(ptr) Variable Input
57 24: 6(float) Constant 1065353216
58 26(high): 20(ptr) Variable Input
John Kessenichcc16fa02015-12-10 18:01:54 -070059 28: TypeBool
John Kessenich6c292d32016-02-15 20:58:50 -070060 33: 15(int) Constant 1
61 35: TypeVector 6(float) 4
62 36: TypePointer Output 35(fvec4)
63 37(Color): 36(ptr) Variable Output
John Kessenichcc16fa02015-12-10 18:01:54 -070064 4(main): 2 Function None 3
65 5: Label
66 17(z): 16(ptr) Variable Function
67 Store 11(face1) 12
68 Store 13(face2) 14
69 Store 17(z) 18
John Kessenich6c292d32016-02-15 20:58:50 -070070 22: 6(float) Load 21(low)
71 23: 6(float) FMul 19 22
72 25: 6(float) FAdd 23 24
73 27: 6(float) Load 26(high)
74 29: 28(bool) FOrdLessThan 25 27
John Kessenichcc16fa02015-12-10 18:01:54 -070075 SelectionMerge 31 None
76 BranchConditional 29 30 31
77 30: Label
78 32: 15(int) Load 17(z)
John Kessenich6c292d32016-02-15 20:58:50 -070079 34: 15(int) IAdd 32 33
80 Store 17(z) 34
John Kessenichcc16fa02015-12-10 18:01:54 -070081 Branch 31
82 31: Label
John Kessenich6c292d32016-02-15 20:58:50 -070083 38: 6(float) Load 11(face1)
84 39: 15(int) Load 17(z)
85 40: 6(float) ConvertSToF 39
86 41: 35(fvec4) CompositeConstruct 40 40 40 40
87 42: 35(fvec4) VectorTimesScalar 41 38
88 43: 6(float) FunctionCall 8(foo()
89 44: 35(fvec4) CompositeConstruct 43 43 43 43
90 45: 35(fvec4) FAdd 42 44
91 Store 37(Color) 45
John Kessenichcc16fa02015-12-10 18:01:54 -070092 Return
93 FunctionEnd
94 8(foo(): 6(float) Function None 7
95 9: Label
John Kessenich6c292d32016-02-15 20:58:50 -070096 46: 6(float) Load 13(face2)
97 ReturnValue 46
John Kessenichcc16fa02015-12-10 18:01:54 -070098 FunctionEnd