mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-23 19:55:05 +00:00
ac3707921e
Now, version 5.* is all connected to making the uint type, which doesn't quite work. Generator versions 4 and 6 do not do this.
249 lines
12 KiB
Plaintext
249 lines
12 KiB
Plaintext
spv.300layout.vert
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80006
|
|
// Id's are bound by 163
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 9 11 98 100 108 114 120 128
|
|
Source ESSL 310
|
|
Name 4 "main"
|
|
Name 9 "pos"
|
|
Name 11 "p"
|
|
Name 17 "Transform"
|
|
MemberName 17(Transform) 0 "M1"
|
|
MemberName 17(Transform) 1 "M2"
|
|
MemberName 17(Transform) 2 "N1"
|
|
MemberName 17(Transform) 3 "iuin"
|
|
Name 19 "tblock"
|
|
Name 45 "T3"
|
|
MemberName 45(T3) 0 "M3"
|
|
MemberName 45(T3) 1 "M4"
|
|
MemberName 45(T3) 2 "N2"
|
|
MemberName 45(T3) 3 "uv3a"
|
|
Name 47 ""
|
|
Name 78 "T2"
|
|
MemberName 78(T2) 0 "b"
|
|
MemberName 78(T2) 1 "t2m"
|
|
Name 80 ""
|
|
Name 98 "color"
|
|
Name 100 "c"
|
|
Name 108 "iout"
|
|
Name 114 "uiuin"
|
|
Name 120 "aiv2"
|
|
Name 126 "S"
|
|
MemberName 126(S) 0 "c"
|
|
MemberName 126(S) 1 "f"
|
|
Name 128 "s"
|
|
Decorate 11(p) Location 3
|
|
MemberDecorate 17(Transform) 0 RowMajor
|
|
MemberDecorate 17(Transform) 0 Offset 0
|
|
MemberDecorate 17(Transform) 0 MatrixStride 16
|
|
MemberDecorate 17(Transform) 1 ColMajor
|
|
MemberDecorate 17(Transform) 1 Offset 64
|
|
MemberDecorate 17(Transform) 1 MatrixStride 16
|
|
MemberDecorate 17(Transform) 2 RowMajor
|
|
MemberDecorate 17(Transform) 2 Offset 128
|
|
MemberDecorate 17(Transform) 2 MatrixStride 16
|
|
MemberDecorate 17(Transform) 3 Offset 176
|
|
Decorate 17(Transform) Block
|
|
Decorate 19(tblock) DescriptorSet 0
|
|
Decorate 44 ArrayStride 16
|
|
MemberDecorate 45(T3) 0 ColMajor
|
|
MemberDecorate 45(T3) 0 Offset 0
|
|
MemberDecorate 45(T3) 0 MatrixStride 16
|
|
MemberDecorate 45(T3) 1 RowMajor
|
|
MemberDecorate 45(T3) 1 Offset 64
|
|
MemberDecorate 45(T3) 1 MatrixStride 16
|
|
MemberDecorate 45(T3) 2 ColMajor
|
|
MemberDecorate 45(T3) 2 Offset 128
|
|
MemberDecorate 45(T3) 2 MatrixStride 16
|
|
MemberDecorate 45(T3) 3 Offset 2048
|
|
Decorate 45(T3) Block
|
|
Decorate 47 DescriptorSet 0
|
|
MemberDecorate 78(T2) 0 Offset 0
|
|
MemberDecorate 78(T2) 1 RowMajor
|
|
MemberDecorate 78(T2) 1 Offset 16
|
|
MemberDecorate 78(T2) 1 MatrixStride 16
|
|
Decorate 78(T2) Block
|
|
Decorate 80 DescriptorSet 0
|
|
Decorate 100(c) Location 7
|
|
Decorate 108(iout) Flat
|
|
Decorate 120(aiv2) Location 9
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Output 7(fvec4)
|
|
9(pos): 8(ptr) Variable Output
|
|
10: TypePointer Input 7(fvec4)
|
|
11(p): 10(ptr) Variable Input
|
|
13: TypeMatrix 7(fvec4) 4
|
|
14: TypeVector 6(float) 3
|
|
15: TypeMatrix 14(fvec3) 3
|
|
16: TypeInt 32 1
|
|
17(Transform): TypeStruct 13 13 15 16(int)
|
|
18: TypePointer Uniform 17(Transform)
|
|
19(tblock): 18(ptr) Variable Uniform
|
|
20: 16(int) Constant 0
|
|
21: TypePointer Uniform 13
|
|
24: 16(int) Constant 1
|
|
40: TypeMatrix 14(fvec3) 2
|
|
41: TypeInt 32 0
|
|
42: TypeVector 41(int) 3
|
|
43: 41(int) Constant 4
|
|
44: TypeArray 42(ivec3) 43
|
|
45(T3): TypeStruct 13 13 40 44
|
|
46: TypePointer Uniform 45(T3)
|
|
47: 46(ptr) Variable Uniform
|
|
78(T2): TypeStruct 41(int) 13
|
|
79: TypePointer Uniform 78(T2)
|
|
80: 79(ptr) Variable Uniform
|
|
97: TypePointer Output 14(fvec3)
|
|
98(color): 97(ptr) Variable Output
|
|
99: TypePointer Input 14(fvec3)
|
|
100(c): 99(ptr) Variable Input
|
|
102: 16(int) Constant 2
|
|
103: TypePointer Uniform 15
|
|
107: TypePointer Output 16(int)
|
|
108(iout): 107(ptr) Variable Output
|
|
109: 16(int) Constant 3
|
|
110: TypePointer Uniform 16(int)
|
|
113: TypePointer Input 41(int)
|
|
114(uiuin): 113(ptr) Variable Input
|
|
118: TypeVector 16(int) 2
|
|
119: TypePointer Input 118(ivec2)
|
|
120(aiv2): 119(ptr) Variable Input
|
|
121: 41(int) Constant 1
|
|
122: TypePointer Input 16(int)
|
|
126(S): TypeStruct 14(fvec3) 6(float)
|
|
127: TypePointer Output 126(S)
|
|
128(s): 127(ptr) Variable Output
|
|
131: 41(int) Constant 0
|
|
132: TypePointer Input 6(float)
|
|
135: TypePointer Output 6(float)
|
|
137: TypeBool
|
|
138: TypePointer Uniform 14(fvec3)
|
|
141: 6(float) Constant 1065353216
|
|
142: 14(fvec3) ConstantComposite 141 141 141
|
|
143: TypeVector 137(bool) 3
|
|
149: TypePointer Uniform 42(ivec3)
|
|
152: 41(int) Constant 5
|
|
153: 42(ivec3) ConstantComposite 152 152 152
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
12: 7(fvec4) Load 11(p)
|
|
22: 21(ptr) AccessChain 19(tblock) 20
|
|
23: 13 Load 22
|
|
25: 21(ptr) AccessChain 19(tblock) 24
|
|
26: 13 Load 25
|
|
27: 7(fvec4) CompositeExtract 23 0
|
|
28: 7(fvec4) CompositeExtract 26 0
|
|
29: 7(fvec4) FAdd 27 28
|
|
30: 7(fvec4) CompositeExtract 23 1
|
|
31: 7(fvec4) CompositeExtract 26 1
|
|
32: 7(fvec4) FAdd 30 31
|
|
33: 7(fvec4) CompositeExtract 23 2
|
|
34: 7(fvec4) CompositeExtract 26 2
|
|
35: 7(fvec4) FAdd 33 34
|
|
36: 7(fvec4) CompositeExtract 23 3
|
|
37: 7(fvec4) CompositeExtract 26 3
|
|
38: 7(fvec4) FAdd 36 37
|
|
39: 13 CompositeConstruct 29 32 35 38
|
|
48: 21(ptr) AccessChain 47 24
|
|
49: 13 Load 48
|
|
50: 7(fvec4) CompositeExtract 39 0
|
|
51: 7(fvec4) CompositeExtract 49 0
|
|
52: 7(fvec4) FAdd 50 51
|
|
53: 7(fvec4) CompositeExtract 39 1
|
|
54: 7(fvec4) CompositeExtract 49 1
|
|
55: 7(fvec4) FAdd 53 54
|
|
56: 7(fvec4) CompositeExtract 39 2
|
|
57: 7(fvec4) CompositeExtract 49 2
|
|
58: 7(fvec4) FAdd 56 57
|
|
59: 7(fvec4) CompositeExtract 39 3
|
|
60: 7(fvec4) CompositeExtract 49 3
|
|
61: 7(fvec4) FAdd 59 60
|
|
62: 13 CompositeConstruct 52 55 58 61
|
|
63: 21(ptr) AccessChain 47 20
|
|
64: 13 Load 63
|
|
65: 7(fvec4) CompositeExtract 62 0
|
|
66: 7(fvec4) CompositeExtract 64 0
|
|
67: 7(fvec4) FAdd 65 66
|
|
68: 7(fvec4) CompositeExtract 62 1
|
|
69: 7(fvec4) CompositeExtract 64 1
|
|
70: 7(fvec4) FAdd 68 69
|
|
71: 7(fvec4) CompositeExtract 62 2
|
|
72: 7(fvec4) CompositeExtract 64 2
|
|
73: 7(fvec4) FAdd 71 72
|
|
74: 7(fvec4) CompositeExtract 62 3
|
|
75: 7(fvec4) CompositeExtract 64 3
|
|
76: 7(fvec4) FAdd 74 75
|
|
77: 13 CompositeConstruct 67 70 73 76
|
|
81: 21(ptr) AccessChain 80 24
|
|
82: 13 Load 81
|
|
83: 7(fvec4) CompositeExtract 77 0
|
|
84: 7(fvec4) CompositeExtract 82 0
|
|
85: 7(fvec4) FAdd 83 84
|
|
86: 7(fvec4) CompositeExtract 77 1
|
|
87: 7(fvec4) CompositeExtract 82 1
|
|
88: 7(fvec4) FAdd 86 87
|
|
89: 7(fvec4) CompositeExtract 77 2
|
|
90: 7(fvec4) CompositeExtract 82 2
|
|
91: 7(fvec4) FAdd 89 90
|
|
92: 7(fvec4) CompositeExtract 77 3
|
|
93: 7(fvec4) CompositeExtract 82 3
|
|
94: 7(fvec4) FAdd 92 93
|
|
95: 13 CompositeConstruct 85 88 91 94
|
|
96: 7(fvec4) VectorTimesMatrix 12 95
|
|
Store 9(pos) 96
|
|
101: 14(fvec3) Load 100(c)
|
|
104: 103(ptr) AccessChain 19(tblock) 102
|
|
105: 15 Load 104
|
|
106: 14(fvec3) VectorTimesMatrix 101 105
|
|
Store 98(color) 106
|
|
111: 110(ptr) AccessChain 19(tblock) 109
|
|
112: 16(int) Load 111
|
|
115: 41(int) Load 114(uiuin)
|
|
116: 16(int) Bitcast 115
|
|
117: 16(int) IAdd 112 116
|
|
123: 122(ptr) AccessChain 120(aiv2) 121
|
|
124: 16(int) Load 123
|
|
125: 16(int) IAdd 117 124
|
|
Store 108(iout) 125
|
|
129: 14(fvec3) Load 100(c)
|
|
130: 97(ptr) AccessChain 128(s) 20
|
|
Store 130 129
|
|
133: 132(ptr) AccessChain 11(p) 131
|
|
134: 6(float) Load 133
|
|
136: 135(ptr) AccessChain 128(s) 24
|
|
Store 136 134
|
|
139: 138(ptr) AccessChain 47 102 24
|
|
140: 14(fvec3) Load 139
|
|
144: 143(bvec3) FOrdNotEqual 140 142
|
|
145: 137(bool) Any 144
|
|
146: 137(bool) LogicalNot 145
|
|
SelectionMerge 148 None
|
|
BranchConditional 146 147 148
|
|
147: Label
|
|
150: 149(ptr) AccessChain 47 109 102
|
|
151: 42(ivec3) Load 150
|
|
154: 143(bvec3) INotEqual 151 153
|
|
155: 137(bool) Any 154
|
|
Branch 148
|
|
148: Label
|
|
156: 137(bool) Phi 145 5 155 147
|
|
SelectionMerge 158 None
|
|
BranchConditional 156 157 158
|
|
157: Label
|
|
159: 97(ptr) AccessChain 128(s) 20
|
|
160: 14(fvec3) Load 159
|
|
161: 14(fvec3) CompositeConstruct 141 141 141
|
|
162: 14(fvec3) FAdd 160 161
|
|
Store 159 162
|
|
Branch 158
|
|
158: Label
|
|
Return
|
|
FunctionEnd
|