SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.
This commit is contained in:
@@ -5,16 +5,16 @@ Warning, version 400 is not yet complete; most version-specific features are pre
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 158
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 153
|
||||
|
||||
Source GLSL 400
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main"
|
||||
ExecutionMode 4 OriginLowerLeft
|
||||
Source GLSL 400
|
||||
Name 4 "main"
|
||||
Name 15 "foo(i1;i1;i1;i1;i1;i1;"
|
||||
Name 9 "a"
|
||||
@@ -29,26 +29,25 @@ Linked fragment stage:
|
||||
Name 24 "r"
|
||||
Name 28 "foo3("
|
||||
Name 30 "sum"
|
||||
Name 72 "u"
|
||||
Name 84 "t"
|
||||
Name 87 "s"
|
||||
MemberName 87(s) 0 "t"
|
||||
Name 89 "f"
|
||||
Name 96 "color"
|
||||
Name 102 "e"
|
||||
Name 74 "u"
|
||||
Name 86 "t"
|
||||
Name 89 "s"
|
||||
MemberName 89(s) 0 "t"
|
||||
Name 91 "f"
|
||||
Name 95 "color"
|
||||
Name 101 "e"
|
||||
Name 102 "param"
|
||||
Name 103 "param"
|
||||
Name 104 "param"
|
||||
Name 105 "param"
|
||||
Name 106 "param"
|
||||
Name 125 "ret"
|
||||
Name 127 "tempReturn"
|
||||
Name 132 "tempArg"
|
||||
Name 133 "param"
|
||||
Name 134 "param"
|
||||
Name 135 "param"
|
||||
Name 138 "arg"
|
||||
Name 154 "gl_FragColor"
|
||||
Decorate 154(gl_FragColor) BuiltIn FragColor
|
||||
Name 120 "ret"
|
||||
Name 122 "tempReturn"
|
||||
Name 127 "tempArg"
|
||||
Name 128 "param"
|
||||
Name 129 "param"
|
||||
Name 130 "param"
|
||||
Name 133 "arg"
|
||||
Name 149 "gl_FragColor"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
@@ -64,106 +63,101 @@ Linked fragment stage:
|
||||
43: 6(int) Constant 1024
|
||||
61: 17(float) Constant 1077936128
|
||||
65: 17(float) Constant 1084227584
|
||||
71: TypePointer UniformConstant 17(float)
|
||||
72(u): 71(ptr) Variable UniformConstant
|
||||
74: 17(float) Constant 1078774989
|
||||
75: TypeBool
|
||||
80: 6(int) Constant 1000000
|
||||
82: 6(int) Constant 2000000
|
||||
85: 6(int) Constant 2
|
||||
86: TypeVector 6(int) 4
|
||||
87(s): TypeStruct 86(ivec4)
|
||||
88: TypePointer Function 87(s)
|
||||
90: 6(int) Constant 0
|
||||
91: 6(int) Constant 32
|
||||
92: TypePointer Function 86(ivec4)
|
||||
97: 6(int) Constant 1
|
||||
101: 6(int) Constant 8
|
||||
116: 6(int) Constant 128
|
||||
126: TypePointer PrivateGlobal 6(int)
|
||||
127(tempReturn): 126(ptr) Variable PrivateGlobal
|
||||
128: 17(float) Constant 1082130432
|
||||
129: 17(float) Constant 1065353216
|
||||
130: 17(float) Constant 1073741824
|
||||
131: 19(fvec3) ConstantComposite 129 130 61
|
||||
152: TypeVector 17(float) 4
|
||||
153: TypePointer Output 152(fvec4)
|
||||
154(gl_FragColor): 153(ptr) Variable Output
|
||||
66: TypeInt 32 0
|
||||
67: 66(int) Constant 1
|
||||
73: TypePointer UniformConstant 17(float)
|
||||
74(u): 73(ptr) Variable UniformConstant
|
||||
76: 17(float) Constant 1078774989
|
||||
77: TypeBool
|
||||
82: 6(int) Constant 1000000
|
||||
84: 6(int) Constant 2000000
|
||||
87: 6(int) Constant 2
|
||||
88: TypeVector 6(int) 4
|
||||
89(s): TypeStruct 88(ivec4)
|
||||
90: TypePointer Function 89(s)
|
||||
92: 6(int) Constant 0
|
||||
93: 6(int) Constant 32
|
||||
96: 6(int) Constant 1
|
||||
100: 6(int) Constant 8
|
||||
112: 6(int) Constant 128
|
||||
121: TypePointer Private 6(int)
|
||||
122(tempReturn): 121(ptr) Variable Private
|
||||
123: 17(float) Constant 1082130432
|
||||
124: 17(float) Constant 1065353216
|
||||
125: 17(float) Constant 1073741824
|
||||
126: 19(fvec3) ConstantComposite 124 125 61
|
||||
147: TypeVector 17(float) 4
|
||||
148: TypePointer Output 147(fvec4)
|
||||
149(gl_FragColor): 148(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
84(t): 7(ptr) Variable Function
|
||||
89(f): 88(ptr) Variable Function
|
||||
96(color): 7(ptr) Variable Function
|
||||
102(e): 7(ptr) Variable Function
|
||||
86(t): 7(ptr) Variable Function
|
||||
91(f): 90(ptr) Variable Function
|
||||
95(color): 7(ptr) Variable Function
|
||||
101(e): 7(ptr) Variable Function
|
||||
102(param): 7(ptr) Variable Function
|
||||
103(param): 7(ptr) Variable Function
|
||||
104(param): 7(ptr) Variable Function
|
||||
105(param): 7(ptr) Variable Function
|
||||
106(param): 7(ptr) Variable Function
|
||||
125(ret): 18(ptr) Variable Function
|
||||
132(tempArg): 7(ptr) Variable Function
|
||||
133(param): 18(ptr) Variable Function
|
||||
134(param): 20(ptr) Variable Function
|
||||
135(param): 7(ptr) Variable Function
|
||||
138(arg): 18(ptr) Variable Function
|
||||
Store 84(t) 85
|
||||
93: 92(ptr) AccessChain 89(f) 90
|
||||
94: 86(ivec4) Load 93
|
||||
95: 86(ivec4) CompositeInsert 91 94 1
|
||||
Store 93 95
|
||||
98: 6(int) Load 84(t)
|
||||
99: 6(int) Load 84(t)
|
||||
100: 6(int) IAdd 98 99
|
||||
Store 103(param) 97
|
||||
Store 104(param) 100
|
||||
107: 92(ptr) AccessChain 89(f) 90
|
||||
108: 86(ivec4) Load 107
|
||||
109: 6(int) CompositeExtract 108 1
|
||||
Store 106(param) 109
|
||||
110: 6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 103(param) 85 104(param) 101 105(param) 106(param)
|
||||
111: 6(int) Load 105(param)
|
||||
Store 102(e) 111
|
||||
112: 6(int) Load 106(param)
|
||||
113: 92(ptr) AccessChain 89(f) 90
|
||||
114: 86(ivec4) Load 113
|
||||
115: 86(ivec4) CompositeInsert 112 114 1
|
||||
Store 113 115
|
||||
Store 96(color) 110
|
||||
117: 6(int) Load 102(e)
|
||||
118: 92(ptr) AccessChain 89(f) 90
|
||||
119: 86(ivec4) Load 118
|
||||
120: 6(int) CompositeExtract 119 1
|
||||
121: 6(int) IAdd 117 120
|
||||
122: 6(int) IMul 116 121
|
||||
123: 6(int) Load 96(color)
|
||||
124: 6(int) IAdd 123 122
|
||||
Store 96(color) 124
|
||||
Store 133(param) 128
|
||||
Store 134(param) 131
|
||||
136: 6(int) FunctionCall 25(foo2(f1;vf3;i1;) 133(param) 134(param) 135(param)
|
||||
137: 6(int) Load 135(param)
|
||||
Store 132(tempArg) 137
|
||||
Store 127(tempReturn) 136
|
||||
139: 6(int) Load 132(tempArg)
|
||||
140: 17(float) ConvertSToF 139
|
||||
Store 138(arg) 140
|
||||
141: 6(int) Load 127(tempReturn)
|
||||
142: 17(float) ConvertSToF 141
|
||||
Store 125(ret) 142
|
||||
143: 17(float) Load 125(ret)
|
||||
144: 17(float) Load 138(arg)
|
||||
145: 17(float) FAdd 143 144
|
||||
146: 6(int) ConvertFToS 145
|
||||
147: 6(int) Load 96(color)
|
||||
148: 6(int) IAdd 147 146
|
||||
Store 96(color) 148
|
||||
149: 6(int) FunctionCall 28(foo3()
|
||||
150: 6(int) Load 96(color)
|
||||
151: 6(int) IAdd 150 149
|
||||
Store 96(color) 151
|
||||
155: 6(int) Load 96(color)
|
||||
156: 17(float) ConvertSToF 155
|
||||
157: 152(fvec4) CompositeConstruct 156 156 156 156
|
||||
Store 154(gl_FragColor) 157
|
||||
120(ret): 18(ptr) Variable Function
|
||||
127(tempArg): 7(ptr) Variable Function
|
||||
128(param): 18(ptr) Variable Function
|
||||
129(param): 20(ptr) Variable Function
|
||||
130(param): 7(ptr) Variable Function
|
||||
133(arg): 18(ptr) Variable Function
|
||||
Store 86(t) 87
|
||||
94: 7(ptr) AccessChain 91(f) 92 67
|
||||
Store 94 93
|
||||
97: 6(int) Load 86(t)
|
||||
98: 6(int) Load 86(t)
|
||||
99: 6(int) IAdd 97 98
|
||||
Store 102(param) 96
|
||||
Store 103(param) 99
|
||||
106: 7(ptr) AccessChain 91(f) 92 67
|
||||
107: 6(int) Load 106
|
||||
Store 105(param) 107
|
||||
108: 6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 102(param) 87 103(param) 100 104(param) 105(param)
|
||||
109: 6(int) Load 104(param)
|
||||
Store 101(e) 109
|
||||
110: 6(int) Load 105(param)
|
||||
111: 7(ptr) AccessChain 91(f) 92 67
|
||||
Store 111 110
|
||||
Store 95(color) 108
|
||||
113: 6(int) Load 101(e)
|
||||
114: 7(ptr) AccessChain 91(f) 92 67
|
||||
115: 6(int) Load 114
|
||||
116: 6(int) IAdd 113 115
|
||||
117: 6(int) IMul 112 116
|
||||
118: 6(int) Load 95(color)
|
||||
119: 6(int) IAdd 118 117
|
||||
Store 95(color) 119
|
||||
Store 128(param) 123
|
||||
Store 129(param) 126
|
||||
131: 6(int) FunctionCall 25(foo2(f1;vf3;i1;) 128(param) 129(param) 130(param)
|
||||
132: 6(int) Load 130(param)
|
||||
Store 127(tempArg) 132
|
||||
Store 122(tempReturn) 131
|
||||
134: 6(int) Load 127(tempArg)
|
||||
135: 17(float) ConvertSToF 134
|
||||
Store 133(arg) 135
|
||||
136: 6(int) Load 122(tempReturn)
|
||||
137: 17(float) ConvertSToF 136
|
||||
Store 120(ret) 137
|
||||
138: 17(float) Load 120(ret)
|
||||
139: 17(float) Load 133(arg)
|
||||
140: 17(float) FAdd 138 139
|
||||
141: 6(int) ConvertFToS 140
|
||||
142: 6(int) Load 95(color)
|
||||
143: 6(int) IAdd 142 141
|
||||
Store 95(color) 143
|
||||
144: 6(int) FunctionCall 28(foo3()
|
||||
145: 6(int) Load 95(color)
|
||||
146: 6(int) IAdd 145 144
|
||||
Store 95(color) 146
|
||||
150: 6(int) Load 95(color)
|
||||
151: 17(float) ConvertSToF 150
|
||||
152: 147(fvec4) CompositeConstruct 151 151 151 151
|
||||
Store 149(gl_FragColor) 152
|
||||
Return
|
||||
FunctionEnd
|
||||
15(foo(i1;i1;i1;i1;i1;i1;): 6(int) Function None 8
|
||||
@@ -219,20 +213,20 @@ Linked fragment stage:
|
||||
63: 17(float) FMul 61 62
|
||||
64: 6(int) ConvertFToS 63
|
||||
Store 24(r) 64
|
||||
66: 19(fvec3) Load 23(b)
|
||||
67: 17(float) CompositeExtract 66 1
|
||||
68: 17(float) FMul 65 67
|
||||
69: 6(int) ConvertFToS 68
|
||||
ReturnValue 69
|
||||
68: 18(ptr) AccessChain 23(b) 67
|
||||
69: 17(float) Load 68
|
||||
70: 17(float) FMul 65 69
|
||||
71: 6(int) ConvertFToS 70
|
||||
ReturnValue 71
|
||||
FunctionEnd
|
||||
28(foo3(): 6(int) Function None 27
|
||||
29: Label
|
||||
73: 17(float) Load 72(u)
|
||||
76: 75(bool) FOrdGreaterThan 73 74
|
||||
SelectionMerge 78 None
|
||||
BranchConditional 76 77 78
|
||||
77: Label
|
||||
75: 17(float) Load 74(u)
|
||||
78: 77(bool) FOrdGreaterThan 75 76
|
||||
SelectionMerge 80 None
|
||||
BranchConditional 78 79 80
|
||||
79: Label
|
||||
Kill
|
||||
78: Label
|
||||
ReturnValue 82
|
||||
80: Label
|
||||
ReturnValue 84
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user