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
|
|
@ -139,10 +139,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)
|
||||
|
|
@ -306,10 +316,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)
|
||||
|
|
@ -331,13 +351,13 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 153
|
||||
// Id's are bound by 154
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 136 150 152
|
||||
EntryPoint Fragment 4 "main" 136 140
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
|
|
@ -363,13 +383,12 @@ gl_FragCoord origin is upper left
|
|||
MemberName 127(PS_OUTPUT) 0 "Color"
|
||||
MemberName 127(PS_OUTPUT) 1 "Depth"
|
||||
Name 129 "psout"
|
||||
Name 136 "@entryPointOutput"
|
||||
Name 139 "g_tTex1df4a"
|
||||
Name 142 "g_tTexcdf4"
|
||||
Name 145 "g_tTexcdi4"
|
||||
Name 148 "g_tTexcdu4"
|
||||
Name 150 "Color"
|
||||
Name 152 "Depth"
|
||||
Name 136 "Color"
|
||||
Name 140 "Depth"
|
||||
Name 144 "g_tTex1df4a"
|
||||
Name 147 "g_tTexcdf4"
|
||||
Name 150 "g_tTexcdi4"
|
||||
Name 153 "g_tTexcdu4"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 12(g_tTex1df4) Binding 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
|
|
@ -383,13 +402,13 @@ gl_FragCoord origin is upper left
|
|||
Decorate 105(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 116(g_tTex3du4) DescriptorSet 0
|
||||
MemberDecorate 127(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 139(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 139(g_tTex1df4a) Binding 1
|
||||
Decorate 142(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 145(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 148(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 150(Color) Location 0
|
||||
Decorate 152(Depth) BuiltIn FragDepth
|
||||
Decorate 136(Color) Location 0
|
||||
Decorate 140(Depth) 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
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -473,22 +492,20 @@ gl_FragCoord origin is upper left
|
|||
130: 6(float) Constant 1065353216
|
||||
131: 7(fvec4) ConstantComposite 130 130 130 130
|
||||
133: TypePointer Function 6(float)
|
||||
135: TypePointer Output 127(PS_OUTPUT)
|
||||
136(@entryPointOutput): 135(ptr) Variable Output
|
||||
139(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
140: TypeImage 6(float) Cube sampled format:Unknown
|
||||
141: TypePointer UniformConstant 140
|
||||
142(g_tTexcdf4): 141(ptr) Variable UniformConstant
|
||||
143: TypeImage 21(int) Cube sampled format:Unknown
|
||||
144: TypePointer UniformConstant 143
|
||||
145(g_tTexcdi4): 144(ptr) Variable UniformConstant
|
||||
146: TypeImage 36(int) Cube sampled format:Unknown
|
||||
147: TypePointer UniformConstant 146
|
||||
148(g_tTexcdu4): 147(ptr) Variable UniformConstant
|
||||
149: TypePointer Output 7(fvec4)
|
||||
150(Color): 149(ptr) Variable Output
|
||||
151: TypePointer Output 6(float)
|
||||
152(Depth): 151(ptr) Variable Output
|
||||
135: TypePointer Output 7(fvec4)
|
||||
136(Color): 135(ptr) Variable Output
|
||||
139: TypePointer Output 6(float)
|
||||
140(Depth): 139(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 21(int) Cube sampled format:Unknown
|
||||
149: TypePointer UniformConstant 148
|
||||
150(g_tTexcdi4): 149(ptr) Variable UniformConstant
|
||||
151: TypeImage 36(int) Cube sampled format:Unknown
|
||||
152: TypePointer UniformConstant 151
|
||||
153(g_tTexcdu4): 152(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
|
|
@ -550,7 +567,11 @@ gl_FragCoord origin is upper left
|
|||
Store 132 131
|
||||
134: 133(ptr) AccessChain 129(psout) 22
|
||||
Store 134 130
|
||||
137:127(PS_OUTPUT) Load 129(psout)
|
||||
Store 136(@entryPointOutput) 137
|
||||
137: 8(ptr) AccessChain 129(psout) 60
|
||||
138: 7(fvec4) Load 137
|
||||
Store 136(Color) 138
|
||||
141: 133(ptr) AccessChain 129(psout) 22
|
||||
142: 6(float) Load 141
|
||||
Store 140(Depth) 142
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue