SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.
This commit is contained in:
@@ -6,16 +6,16 @@ WARNING: 0:5: varying deprecated in version 130; may be removed in future releas
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 134
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 136
|
||||
|
||||
Source GLSL 130
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main"
|
||||
EntryPoint Fragment 4 "main" 40 96
|
||||
ExecutionMode 4 OriginLowerLeft
|
||||
Source GLSL 130
|
||||
Name 4 "main"
|
||||
Name 8 "s1"
|
||||
MemberName 8(s1) 0 "i"
|
||||
@@ -34,24 +34,18 @@ Linked fragment stage:
|
||||
Name 15 "foo3"
|
||||
Name 36 "localFArray"
|
||||
Name 40 "coord"
|
||||
Name 47 "localIArray"
|
||||
Name 66 "x"
|
||||
Name 68 "localArray"
|
||||
Name 73 "i"
|
||||
Name 80 "a"
|
||||
Name 86 "condition"
|
||||
Name 94 "color"
|
||||
Name 104 "gl_FragColor"
|
||||
Name 124 "sampler"
|
||||
Name 130 "foo"
|
||||
Name 131 "foo2"
|
||||
Name 133 "uFloatArray"
|
||||
Decorate 40(coord) Smooth
|
||||
Decorate 94(color) Smooth
|
||||
Decorate 104(gl_FragColor) BuiltIn FragColor
|
||||
Decorate 130(foo) NoStaticUse
|
||||
Decorate 131(foo2) NoStaticUse
|
||||
Decorate 133(uFloatArray) NoStaticUse
|
||||
Name 49 "localIArray"
|
||||
Name 68 "x"
|
||||
Name 70 "localArray"
|
||||
Name 75 "i"
|
||||
Name 82 "a"
|
||||
Name 88 "condition"
|
||||
Name 96 "color"
|
||||
Name 106 "gl_FragColor"
|
||||
Name 126 "samp2D"
|
||||
Name 132 "foo"
|
||||
Name 133 "foo2"
|
||||
Name 135 "uFloatArray"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
@@ -79,38 +73,42 @@ Linked fragment stage:
|
||||
38: TypeVector 7(float) 2
|
||||
39: TypePointer Input 38(fvec2)
|
||||
40(coord): 39(ptr) Variable Input
|
||||
44: 32(int) Constant 8
|
||||
45: TypeArray 6(int) 44
|
||||
46: TypePointer Function 45
|
||||
50: TypePointer Function 6(int)
|
||||
67: 6(int) Constant 5
|
||||
78: 6(int) Constant 16
|
||||
82: 7(float) Constant 0
|
||||
86(condition): 20(ptr) Variable UniformConstant
|
||||
92: 6(int) Constant 3
|
||||
93: TypePointer Input 9(fvec4)
|
||||
94(color): 93(ptr) Variable Input
|
||||
96: TypePointer Function 9(fvec4)
|
||||
103: TypePointer Output 9(fvec4)
|
||||
104(gl_FragColor): 103(ptr) Variable Output
|
||||
121: TypeImage 7(float) 2D sampled format:Unknown
|
||||
122: TypeSampledImage 121
|
||||
123: TypePointer UniformConstant 122
|
||||
124(sampler): 123(ptr) Variable UniformConstant
|
||||
129: TypePointer UniformConstant 8(s1)
|
||||
130(foo): 129(ptr) Variable UniformConstant
|
||||
131(foo2): 17(ptr) Variable UniformConstant
|
||||
132: TypePointer UniformConstant 34
|
||||
133(uFloatArray): 132(ptr) Variable UniformConstant
|
||||
41: 32(int) Constant 0
|
||||
42: TypePointer Input 7(float)
|
||||
46: 32(int) Constant 8
|
||||
47: TypeArray 6(int) 46
|
||||
48: TypePointer Function 47
|
||||
52: TypePointer Function 6(int)
|
||||
69: 6(int) Constant 5
|
||||
80: 6(int) Constant 16
|
||||
84: 7(float) Constant 0
|
||||
88(condition): 20(ptr) Variable UniformConstant
|
||||
94: 6(int) Constant 3
|
||||
95: TypePointer Input 9(fvec4)
|
||||
96(color): 95(ptr) Variable Input
|
||||
98: TypePointer Function 9(fvec4)
|
||||
100: 32(int) Constant 1
|
||||
103: 32(int) Constant 2
|
||||
105: TypePointer Output 9(fvec4)
|
||||
106(gl_FragColor): 105(ptr) Variable Output
|
||||
123: TypeImage 7(float) 2D sampled format:Unknown
|
||||
124: TypeSampledImage 123
|
||||
125: TypePointer UniformConstant 124
|
||||
126(samp2D): 125(ptr) Variable UniformConstant
|
||||
131: TypePointer UniformConstant 8(s1)
|
||||
132(foo): 131(ptr) Variable UniformConstant
|
||||
133(foo2): 17(ptr) Variable UniformConstant
|
||||
134: TypePointer UniformConstant 34
|
||||
135(uFloatArray): 134(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
12(locals2): 11(ptr) Variable Function
|
||||
36(localFArray): 35(ptr) Variable Function
|
||||
47(localIArray): 46(ptr) Variable Function
|
||||
66(x): 50(ptr) Variable Function
|
||||
68(localArray): 35(ptr) Variable Function
|
||||
73(i): 50(ptr) Variable Function
|
||||
80(a): 35(ptr) Variable Function
|
||||
49(localIArray): 48(ptr) Variable Function
|
||||
68(x): 52(ptr) Variable Function
|
||||
70(localArray): 35(ptr) Variable Function
|
||||
75(i): 52(ptr) Variable Function
|
||||
82(a): 35(ptr) Variable Function
|
||||
18: 17(ptr) AccessChain 15(foo3) 16
|
||||
19: 10(s2) Load 18
|
||||
Store 12(locals2) 19
|
||||
@@ -118,102 +116,100 @@ Linked fragment stage:
|
||||
22: 6(int) Load 21
|
||||
24: 23(bool) SGreaterThan 22 16
|
||||
SelectionMerge 26 None
|
||||
BranchConditional 24 25 52
|
||||
BranchConditional 24 25 54
|
||||
25: Label
|
||||
31: 30(ptr) AccessChain 12(locals2) 27 28
|
||||
Store 31 29
|
||||
41: 38(fvec2) Load 40(coord)
|
||||
42: 7(float) CompositeExtract 41 0
|
||||
43: 30(ptr) AccessChain 36(localFArray) 37
|
||||
Store 43 42
|
||||
48: 20(ptr) AccessChain 15(foo3) 16 16
|
||||
49: 6(int) Load 48
|
||||
51: 50(ptr) AccessChain 47(localIArray) 27
|
||||
Store 51 49
|
||||
43: 42(ptr) AccessChain 40(coord) 41
|
||||
44: 7(float) Load 43
|
||||
45: 30(ptr) AccessChain 36(localFArray) 37
|
||||
Store 45 44
|
||||
50: 20(ptr) AccessChain 15(foo3) 16 16
|
||||
51: 6(int) Load 50
|
||||
53: 52(ptr) AccessChain 49(localIArray) 27
|
||||
Store 53 51
|
||||
Branch 26
|
||||
52: Label
|
||||
53: 38(fvec2) Load 40(coord)
|
||||
54: 7(float) CompositeExtract 53 0
|
||||
55: 30(ptr) AccessChain 12(locals2) 27 28
|
||||
Store 55 54
|
||||
56: 30(ptr) AccessChain 36(localFArray) 37
|
||||
Store 56 29
|
||||
57: 50(ptr) AccessChain 47(localIArray) 27
|
||||
Store 57 16
|
||||
54: Label
|
||||
55: 42(ptr) AccessChain 40(coord) 41
|
||||
56: 7(float) Load 55
|
||||
57: 30(ptr) AccessChain 12(locals2) 27 28
|
||||
Store 57 56
|
||||
58: 30(ptr) AccessChain 36(localFArray) 37
|
||||
Store 58 29
|
||||
59: 52(ptr) AccessChain 49(localIArray) 27
|
||||
Store 59 16
|
||||
Branch 26
|
||||
26: Label
|
||||
58: 50(ptr) AccessChain 47(localIArray) 27
|
||||
59: 6(int) Load 58
|
||||
60: 23(bool) IEqual 59 16
|
||||
SelectionMerge 62 None
|
||||
BranchConditional 60 61 62
|
||||
61: Label
|
||||
63: 30(ptr) AccessChain 36(localFArray) 37
|
||||
64: 7(float) Load 63
|
||||
65: 7(float) FAdd 64 29
|
||||
Store 63 65
|
||||
Branch 62
|
||||
62: Label
|
||||
Store 66(x) 67
|
||||
69: 6(int) Load 66(x)
|
||||
70: 38(fvec2) Load 40(coord)
|
||||
71: 7(float) CompositeExtract 70 0
|
||||
72: 30(ptr) AccessChain 68(localArray) 69
|
||||
Store 72 71
|
||||
Store 73(i) 16
|
||||
Branch 74
|
||||
74: Label
|
||||
77: 6(int) Load 73(i)
|
||||
79: 23(bool) SLessThan 77 78
|
||||
LoopMerge 75 None
|
||||
BranchConditional 79 76 75
|
||||
76: Label
|
||||
81: 6(int) Load 73(i)
|
||||
83: 30(ptr) AccessChain 80(a) 81
|
||||
Store 83 82
|
||||
84: 6(int) Load 73(i)
|
||||
85: 6(int) IAdd 84 28
|
||||
Store 73(i) 85
|
||||
Branch 74
|
||||
75: Label
|
||||
87: 6(int) Load 86(condition)
|
||||
88: 23(bool) IEqual 87 28
|
||||
SelectionMerge 90 None
|
||||
BranchConditional 88 89 90
|
||||
89: Label
|
||||
91: 34 Load 68(localArray)
|
||||
Store 80(a) 91
|
||||
Branch 90
|
||||
90: Label
|
||||
95: 9(fvec4) Load 94(color)
|
||||
97: 96(ptr) AccessChain 12(locals2) 92
|
||||
Store 97 95
|
||||
98: 38(fvec2) Load 40(coord)
|
||||
99: 7(float) CompositeExtract 98 1
|
||||
100: 96(ptr) AccessChain 12(locals2) 92
|
||||
101: 9(fvec4) Load 100
|
||||
102: 9(fvec4) CompositeInsert 99 101 2
|
||||
Store 100 102
|
||||
105: 96(ptr) AccessChain 12(locals2) 92
|
||||
106: 9(fvec4) Load 105
|
||||
107: 30(ptr) AccessChain 36(localFArray) 37
|
||||
108: 7(float) Load 107
|
||||
109: 30(ptr) AccessChain 12(locals2) 27 28
|
||||
60: 52(ptr) AccessChain 49(localIArray) 27
|
||||
61: 6(int) Load 60
|
||||
62: 23(bool) IEqual 61 16
|
||||
SelectionMerge 64 None
|
||||
BranchConditional 62 63 64
|
||||
63: Label
|
||||
65: 30(ptr) AccessChain 36(localFArray) 37
|
||||
66: 7(float) Load 65
|
||||
67: 7(float) FAdd 66 29
|
||||
Store 65 67
|
||||
Branch 64
|
||||
64: Label
|
||||
Store 68(x) 69
|
||||
71: 6(int) Load 68(x)
|
||||
72: 42(ptr) AccessChain 40(coord) 41
|
||||
73: 7(float) Load 72
|
||||
74: 30(ptr) AccessChain 70(localArray) 71
|
||||
Store 74 73
|
||||
Store 75(i) 16
|
||||
Branch 76
|
||||
76: Label
|
||||
79: 6(int) Load 75(i)
|
||||
81: 23(bool) SLessThan 79 80
|
||||
LoopMerge 77 76 None
|
||||
BranchConditional 81 78 77
|
||||
78: Label
|
||||
83: 6(int) Load 75(i)
|
||||
85: 30(ptr) AccessChain 82(a) 83
|
||||
Store 85 84
|
||||
86: 6(int) Load 75(i)
|
||||
87: 6(int) IAdd 86 28
|
||||
Store 75(i) 87
|
||||
Branch 76
|
||||
77: Label
|
||||
89: 6(int) Load 88(condition)
|
||||
90: 23(bool) IEqual 89 28
|
||||
SelectionMerge 92 None
|
||||
BranchConditional 90 91 92
|
||||
91: Label
|
||||
93: 34 Load 70(localArray)
|
||||
Store 82(a) 93
|
||||
Branch 92
|
||||
92: Label
|
||||
97: 9(fvec4) Load 96(color)
|
||||
99: 98(ptr) AccessChain 12(locals2) 94
|
||||
Store 99 97
|
||||
101: 42(ptr) AccessChain 40(coord) 100
|
||||
102: 7(float) Load 101
|
||||
104: 30(ptr) AccessChain 12(locals2) 94 103
|
||||
Store 104 102
|
||||
107: 98(ptr) AccessChain 12(locals2) 94
|
||||
108: 9(fvec4) Load 107
|
||||
109: 30(ptr) AccessChain 36(localFArray) 37
|
||||
110: 7(float) Load 109
|
||||
111: 7(float) FAdd 108 110
|
||||
112: 6(int) Load 66(x)
|
||||
113: 30(ptr) AccessChain 68(localArray) 112
|
||||
114: 7(float) Load 113
|
||||
115: 7(float) FAdd 111 114
|
||||
116: 6(int) Load 66(x)
|
||||
117: 30(ptr) AccessChain 80(a) 116
|
||||
118: 7(float) Load 117
|
||||
119: 7(float) FAdd 115 118
|
||||
120: 9(fvec4) VectorTimesScalar 106 119
|
||||
125: 122 Load 124(sampler)
|
||||
126: 38(fvec2) Load 40(coord)
|
||||
127: 9(fvec4) ImageSampleImplicitLod 125 126
|
||||
128: 9(fvec4) FMul 120 127
|
||||
Store 104(gl_FragColor) 128
|
||||
111: 30(ptr) AccessChain 12(locals2) 27 28
|
||||
112: 7(float) Load 111
|
||||
113: 7(float) FAdd 110 112
|
||||
114: 6(int) Load 68(x)
|
||||
115: 30(ptr) AccessChain 70(localArray) 114
|
||||
116: 7(float) Load 115
|
||||
117: 7(float) FAdd 113 116
|
||||
118: 6(int) Load 68(x)
|
||||
119: 30(ptr) AccessChain 82(a) 118
|
||||
120: 7(float) Load 119
|
||||
121: 7(float) FAdd 117 120
|
||||
122: 9(fvec4) VectorTimesScalar 108 121
|
||||
127: 124 Load 126(samp2D)
|
||||
128: 38(fvec2) Load 40(coord)
|
||||
129: 9(fvec4) ImageSampleImplicitLod 127 128
|
||||
130: 9(fvec4) FMul 122 129
|
||||
Store 106(gl_FragColor) 130
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user