HLSL: Flatten whole-struct assigns and returns when targeting flattened I/O structs.
This commit is contained in:
parent
f8e494c18c
commit
d21baed6bc
67 changed files with 4024 additions and 2886 deletions
|
|
@ -112,10 +112,20 @@ gl_FragCoord origin is upper left
|
|||
0:63 1 (const int)
|
||||
0:63 Constant:
|
||||
0:63 1.000000
|
||||
0:65 Sequence
|
||||
0:65 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:65 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:65 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Constant:
|
||||
0:65 0 (const int)
|
||||
0:65 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:65 Depth: direct index for structure (temp float FragDepth)
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Constant:
|
||||
0:65 1 (const int)
|
||||
0:65 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -260,10 +270,20 @@ gl_FragCoord origin is upper left
|
|||
0:63 1 (const int)
|
||||
0:63 Constant:
|
||||
0:63 1.000000
|
||||
0:65 Sequence
|
||||
0:65 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:65 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:65 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Constant:
|
||||
0:65 0 (const int)
|
||||
0:65 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:65 Depth: direct index for structure (temp float FragDepth)
|
||||
0:65 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:65 Constant:
|
||||
0:65 1 (const int)
|
||||
0:65 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -293,14 +313,14 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 155
|
||||
// Id's are bound by 156
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 103 152 154
|
||||
EntryPoint Fragment 4 "main" 103 107
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 8 "r01"
|
||||
|
|
@ -320,24 +340,23 @@ gl_FragCoord origin is upper left
|
|||
MemberName 92(PS_OUTPUT) 0 "Color"
|
||||
MemberName 92(PS_OUTPUT) 1 "Depth"
|
||||
Name 94 "psout"
|
||||
Name 103 "@entryPointOutput"
|
||||
Name 108 "g_tTex3df4"
|
||||
Name 111 "g_tTex3di4"
|
||||
Name 114 "g_tTex3du4"
|
||||
Name 117 "g_tTexcdf4"
|
||||
Name 120 "g_tTexcdi4"
|
||||
Name 123 "g_tTexcdu4"
|
||||
Name 126 "g_tTex1df4a"
|
||||
Name 129 "g_tTex1di4a"
|
||||
Name 132 "g_tTex1du4a"
|
||||
Name 135 "g_tTex2df4a"
|
||||
Name 138 "g_tTex2di4a"
|
||||
Name 141 "g_tTex2du4a"
|
||||
Name 144 "g_tTexcdf4a"
|
||||
Name 147 "g_tTexcdi4a"
|
||||
Name 150 "g_tTexcdu4a"
|
||||
Name 152 "Color"
|
||||
Name 154 "Depth"
|
||||
Name 103 "Color"
|
||||
Name 107 "Depth"
|
||||
Name 113 "g_tTex3df4"
|
||||
Name 116 "g_tTex3di4"
|
||||
Name 119 "g_tTex3du4"
|
||||
Name 122 "g_tTexcdf4"
|
||||
Name 125 "g_tTexcdi4"
|
||||
Name 128 "g_tTexcdu4"
|
||||
Name 131 "g_tTex1df4a"
|
||||
Name 134 "g_tTex1di4a"
|
||||
Name 137 "g_tTex1du4a"
|
||||
Name 140 "g_tTex2df4a"
|
||||
Name 143 "g_tTex2di4a"
|
||||
Name 146 "g_tTex2du4a"
|
||||
Name 149 "g_tTexcdf4a"
|
||||
Name 152 "g_tTexcdi4a"
|
||||
Name 155 "g_tTexcdu4a"
|
||||
Decorate 11(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 11(g_tTex1df4) Binding 0
|
||||
Decorate 15(g_sSamp) DescriptorSet 0
|
||||
|
|
@ -348,23 +367,23 @@ gl_FragCoord origin is upper left
|
|||
Decorate 70(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 82(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 92(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 108(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 111(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 114(g_tTex3du4) DescriptorSet 0
|
||||
Decorate 117(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 120(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 123(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 126(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 129(g_tTex1di4a) DescriptorSet 0
|
||||
Decorate 132(g_tTex1du4a) DescriptorSet 0
|
||||
Decorate 135(g_tTex2df4a) DescriptorSet 0
|
||||
Decorate 138(g_tTex2di4a) DescriptorSet 0
|
||||
Decorate 141(g_tTex2du4a) DescriptorSet 0
|
||||
Decorate 144(g_tTexcdf4a) DescriptorSet 0
|
||||
Decorate 147(g_tTexcdi4a) DescriptorSet 0
|
||||
Decorate 150(g_tTexcdu4a) DescriptorSet 0
|
||||
Decorate 152(Color) Location 0
|
||||
Decorate 154(Depth) BuiltIn FragDepth
|
||||
Decorate 103(Color) Location 0
|
||||
Decorate 107(Depth) BuiltIn FragDepth
|
||||
Decorate 113(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 116(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 119(g_tTex3du4) DescriptorSet 0
|
||||
Decorate 122(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 125(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 128(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 131(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 134(g_tTex1di4a) DescriptorSet 0
|
||||
Decorate 137(g_tTex1du4a) DescriptorSet 0
|
||||
Decorate 140(g_tTex2df4a) DescriptorSet 0
|
||||
Decorate 143(g_tTex2di4a) DescriptorSet 0
|
||||
Decorate 146(g_tTex2du4a) DescriptorSet 0
|
||||
Decorate 149(g_tTexcdf4a) DescriptorSet 0
|
||||
Decorate 152(g_tTexcdi4a) DescriptorSet 0
|
||||
Decorate 155(g_tTexcdu4a) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -421,57 +440,55 @@ gl_FragCoord origin is upper left
|
|||
97: 91(fvec4) ConstantComposite 96 96 96 96
|
||||
98: TypePointer Function 91(fvec4)
|
||||
100: 22(int) Constant 1
|
||||
102: TypePointer Output 92(PS_OUTPUT)
|
||||
103(@entryPointOutput): 102(ptr) Variable Output
|
||||
106: TypeImage 6(float) 3D sampled format:Unknown
|
||||
107: TypePointer UniformConstant 106
|
||||
108(g_tTex3df4): 107(ptr) Variable UniformConstant
|
||||
109: TypeImage 22(int) 3D sampled format:Unknown
|
||||
110: TypePointer UniformConstant 109
|
||||
111(g_tTex3di4): 110(ptr) Variable UniformConstant
|
||||
112: TypeImage 38(int) 3D sampled format:Unknown
|
||||
113: TypePointer UniformConstant 112
|
||||
114(g_tTex3du4): 113(ptr) Variable UniformConstant
|
||||
115: TypeImage 6(float) Cube sampled format:Unknown
|
||||
116: TypePointer UniformConstant 115
|
||||
117(g_tTexcdf4): 116(ptr) Variable UniformConstant
|
||||
118: TypeImage 22(int) Cube sampled format:Unknown
|
||||
119: TypePointer UniformConstant 118
|
||||
120(g_tTexcdi4): 119(ptr) Variable UniformConstant
|
||||
121: TypeImage 38(int) Cube sampled format:Unknown
|
||||
122: TypePointer UniformConstant 121
|
||||
123(g_tTexcdu4): 122(ptr) Variable UniformConstant
|
||||
124: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
125: TypePointer UniformConstant 124
|
||||
126(g_tTex1df4a): 125(ptr) Variable UniformConstant
|
||||
127: TypeImage 22(int) 1D array sampled format:Unknown
|
||||
128: TypePointer UniformConstant 127
|
||||
129(g_tTex1di4a): 128(ptr) Variable UniformConstant
|
||||
130: TypeImage 38(int) 1D array sampled format:Unknown
|
||||
131: TypePointer UniformConstant 130
|
||||
132(g_tTex1du4a): 131(ptr) Variable UniformConstant
|
||||
133: TypeImage 6(float) 2D array sampled format:Unknown
|
||||
134: TypePointer UniformConstant 133
|
||||
135(g_tTex2df4a): 134(ptr) Variable UniformConstant
|
||||
136: TypeImage 22(int) 2D array sampled format:Unknown
|
||||
137: TypePointer UniformConstant 136
|
||||
138(g_tTex2di4a): 137(ptr) Variable UniformConstant
|
||||
139: TypeImage 38(int) 2D array sampled format:Unknown
|
||||
140: TypePointer UniformConstant 139
|
||||
141(g_tTex2du4a): 140(ptr) Variable UniformConstant
|
||||
142: TypeImage 6(float) Cube array sampled format:Unknown
|
||||
143: TypePointer UniformConstant 142
|
||||
144(g_tTexcdf4a): 143(ptr) Variable UniformConstant
|
||||
145: TypeImage 22(int) Cube array sampled format:Unknown
|
||||
146: TypePointer UniformConstant 145
|
||||
147(g_tTexcdi4a): 146(ptr) Variable UniformConstant
|
||||
148: TypeImage 38(int) Cube array sampled format:Unknown
|
||||
149: TypePointer UniformConstant 148
|
||||
150(g_tTexcdu4a): 149(ptr) Variable UniformConstant
|
||||
151: TypePointer Output 91(fvec4)
|
||||
152(Color): 151(ptr) Variable Output
|
||||
153: TypePointer Output 6(float)
|
||||
154(Depth): 153(ptr) Variable Output
|
||||
102: TypePointer Output 91(fvec4)
|
||||
103(Color): 102(ptr) Variable Output
|
||||
106: TypePointer Output 6(float)
|
||||
107(Depth): 106(ptr) Variable Output
|
||||
111: TypeImage 6(float) 3D sampled format:Unknown
|
||||
112: TypePointer UniformConstant 111
|
||||
113(g_tTex3df4): 112(ptr) Variable UniformConstant
|
||||
114: TypeImage 22(int) 3D sampled format:Unknown
|
||||
115: TypePointer UniformConstant 114
|
||||
116(g_tTex3di4): 115(ptr) Variable UniformConstant
|
||||
117: TypeImage 38(int) 3D sampled format:Unknown
|
||||
118: TypePointer UniformConstant 117
|
||||
119(g_tTex3du4): 118(ptr) Variable UniformConstant
|
||||
120: TypeImage 6(float) Cube sampled format:Unknown
|
||||
121: TypePointer UniformConstant 120
|
||||
122(g_tTexcdf4): 121(ptr) Variable UniformConstant
|
||||
123: TypeImage 22(int) Cube sampled format:Unknown
|
||||
124: TypePointer UniformConstant 123
|
||||
125(g_tTexcdi4): 124(ptr) Variable UniformConstant
|
||||
126: TypeImage 38(int) Cube sampled format:Unknown
|
||||
127: TypePointer UniformConstant 126
|
||||
128(g_tTexcdu4): 127(ptr) Variable UniformConstant
|
||||
129: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
130: TypePointer UniformConstant 129
|
||||
131(g_tTex1df4a): 130(ptr) Variable UniformConstant
|
||||
132: TypeImage 22(int) 1D array sampled format:Unknown
|
||||
133: TypePointer UniformConstant 132
|
||||
134(g_tTex1di4a): 133(ptr) Variable UniformConstant
|
||||
135: TypeImage 38(int) 1D array sampled format:Unknown
|
||||
136: TypePointer UniformConstant 135
|
||||
137(g_tTex1du4a): 136(ptr) Variable UniformConstant
|
||||
138: TypeImage 6(float) 2D array sampled format:Unknown
|
||||
139: TypePointer UniformConstant 138
|
||||
140(g_tTex2df4a): 139(ptr) Variable UniformConstant
|
||||
141: TypeImage 22(int) 2D array sampled format:Unknown
|
||||
142: TypePointer UniformConstant 141
|
||||
143(g_tTex2di4a): 142(ptr) Variable UniformConstant
|
||||
144: TypeImage 38(int) 2D array sampled format:Unknown
|
||||
145: TypePointer UniformConstant 144
|
||||
146(g_tTex2du4a): 145(ptr) Variable UniformConstant
|
||||
147: TypeImage 6(float) Cube array sampled format:Unknown
|
||||
148: TypePointer UniformConstant 147
|
||||
149(g_tTexcdf4a): 148(ptr) Variable UniformConstant
|
||||
150: TypeImage 22(int) Cube array sampled format:Unknown
|
||||
151: TypePointer UniformConstant 150
|
||||
152(g_tTexcdi4a): 151(ptr) Variable UniformConstant
|
||||
153: TypeImage 38(int) Cube array sampled format:Unknown
|
||||
154: TypePointer UniformConstant 153
|
||||
155(g_tTexcdu4a): 154(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(r01): 7(ptr) Variable Function
|
||||
|
|
@ -524,7 +541,11 @@ gl_FragCoord origin is upper left
|
|||
Store 99 97
|
||||
101: 7(ptr) AccessChain 94(psout) 100
|
||||
Store 101 96
|
||||
104:92(PS_OUTPUT) Load 94(psout)
|
||||
Store 103(@entryPointOutput) 104
|
||||
104: 98(ptr) AccessChain 94(psout) 95
|
||||
105: 91(fvec4) Load 104
|
||||
Store 103(Color) 105
|
||||
108: 7(ptr) AccessChain 94(psout) 100
|
||||
109: 6(float) Load 108
|
||||
Store 107(Depth) 109
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue