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
|
|
@ -193,10 +193,20 @@ gl_FragCoord origin is upper left
|
|||
0:46 1 (const int)
|
||||
0:46 Constant:
|
||||
0:46 1.000000
|
||||
0:48 Sequence
|
||||
0:48 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:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:48 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:48 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:48 Depth: direct index for structure (temp float FragDepth)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 Constant:
|
||||
0:48 1 (const int)
|
||||
0:48 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -414,10 +424,20 @@ gl_FragCoord origin is upper left
|
|||
0:46 1 (const int)
|
||||
0:46 Constant:
|
||||
0:46 1.000000
|
||||
0:48 Sequence
|
||||
0:48 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:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:48 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:48 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 Constant:
|
||||
0:48 0 (const int)
|
||||
0:48 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:48 Depth: direct index for structure (temp float FragDepth)
|
||||
0:48 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:48 Constant:
|
||||
0:48 1 (const int)
|
||||
0:48 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -439,13 +459,13 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 158
|
||||
// Id's are bound by 159
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 141 155 157
|
||||
EntryPoint Fragment 4 "main" 141 145
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
|
|
@ -471,13 +491,12 @@ gl_FragCoord origin is upper left
|
|||
MemberName 132(PS_OUTPUT) 0 "Color"
|
||||
MemberName 132(PS_OUTPUT) 1 "Depth"
|
||||
Name 134 "psout"
|
||||
Name 141 "@entryPointOutput"
|
||||
Name 144 "g_tTex1df4a"
|
||||
Name 147 "g_tTexcdf4"
|
||||
Name 150 "g_tTexcdi4"
|
||||
Name 153 "g_tTexcdu4"
|
||||
Name 155 "Color"
|
||||
Name 157 "Depth"
|
||||
Name 141 "Color"
|
||||
Name 145 "Depth"
|
||||
Name 149 "g_tTex1df4a"
|
||||
Name 152 "g_tTexcdf4"
|
||||
Name 155 "g_tTexcdi4"
|
||||
Name 158 "g_tTexcdu4"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 12(g_tTex1df4) Binding 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
|
|
@ -491,13 +510,13 @@ gl_FragCoord origin is upper left
|
|||
Decorate 110(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 121(g_tTex3du4) DescriptorSet 0
|
||||
MemberDecorate 132(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 144(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 144(g_tTex1df4a) Binding 1
|
||||
Decorate 147(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 150(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 153(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 155(Color) Location 0
|
||||
Decorate 157(Depth) BuiltIn FragDepth
|
||||
Decorate 141(Color) Location 0
|
||||
Decorate 145(Depth) BuiltIn FragDepth
|
||||
Decorate 149(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 149(g_tTex1df4a) Binding 1
|
||||
Decorate 152(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 155(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 158(g_tTexcdu4) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -586,22 +605,20 @@ gl_FragCoord origin is upper left
|
|||
135: 6(float) Constant 1065353216
|
||||
136: 7(fvec4) ConstantComposite 135 135 135 135
|
||||
138: TypePointer Function 6(float)
|
||||
140: TypePointer Output 132(PS_OUTPUT)
|
||||
141(@entryPointOutput): 140(ptr) Variable Output
|
||||
144(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
145: TypeImage 6(float) Cube sampled format:Unknown
|
||||
146: TypePointer UniformConstant 145
|
||||
147(g_tTexcdf4): 146(ptr) Variable UniformConstant
|
||||
148: TypeImage 23(int) Cube sampled format:Unknown
|
||||
149: TypePointer UniformConstant 148
|
||||
150(g_tTexcdi4): 149(ptr) Variable UniformConstant
|
||||
151: TypeImage 38(int) Cube sampled format:Unknown
|
||||
152: TypePointer UniformConstant 151
|
||||
153(g_tTexcdu4): 152(ptr) Variable UniformConstant
|
||||
154: TypePointer Output 7(fvec4)
|
||||
155(Color): 154(ptr) Variable Output
|
||||
156: TypePointer Output 6(float)
|
||||
157(Depth): 156(ptr) Variable Output
|
||||
140: TypePointer Output 7(fvec4)
|
||||
141(Color): 140(ptr) Variable Output
|
||||
144: TypePointer Output 6(float)
|
||||
145(Depth): 144(ptr) Variable Output
|
||||
149(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
150: TypeImage 6(float) Cube sampled format:Unknown
|
||||
151: TypePointer UniformConstant 150
|
||||
152(g_tTexcdf4): 151(ptr) Variable UniformConstant
|
||||
153: TypeImage 23(int) Cube sampled format:Unknown
|
||||
154: TypePointer UniformConstant 153
|
||||
155(g_tTexcdi4): 154(ptr) Variable UniformConstant
|
||||
156: TypeImage 38(int) Cube sampled format:Unknown
|
||||
157: TypePointer UniformConstant 156
|
||||
158(g_tTexcdu4): 157(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
|
|
@ -663,7 +680,11 @@ gl_FragCoord origin is upper left
|
|||
Store 137 136
|
||||
139: 138(ptr) AccessChain 134(psout) 24
|
||||
Store 139 135
|
||||
142:132(PS_OUTPUT) Load 134(psout)
|
||||
Store 141(@entryPointOutput) 142
|
||||
142: 8(ptr) AccessChain 134(psout) 63
|
||||
143: 7(fvec4) Load 142
|
||||
Store 141(Color) 143
|
||||
146: 138(ptr) AccessChain 134(psout) 24
|
||||
147: 6(float) Load 146
|
||||
Store 145(Depth) 147
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue