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:41 1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 1.000000
|
||||
0:43 Sequence
|
||||
0:43 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:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:43 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:43 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Constant:
|
||||
0:43 0 (const int)
|
||||
0:43 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:43 Depth: direct index for structure (temp float FragDepth)
|
||||
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Constant:
|
||||
0:43 1 (const int)
|
||||
0:43 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -303,10 +313,20 @@ gl_FragCoord origin is upper left
|
|||
0:41 1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 1.000000
|
||||
0:43 Sequence
|
||||
0:43 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:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:43 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:43 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Constant:
|
||||
0:43 0 (const int)
|
||||
0:43 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:43 Depth: direct index for structure (temp float FragDepth)
|
||||
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:43 Constant:
|
||||
0:43 1 (const int)
|
||||
0:43 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -325,7 +345,7 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 149
|
||||
// Id's are bound by 150
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
|
|
@ -333,7 +353,7 @@ gl_FragCoord origin is upper left
|
|||
Capability ImageQuery
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 141 146 148
|
||||
EntryPoint Fragment 4 "main" 141 145
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 8 "txval10"
|
||||
|
|
@ -359,10 +379,9 @@ gl_FragCoord origin is upper left
|
|||
MemberName 131(PS_OUTPUT) 0 "Color"
|
||||
MemberName 131(PS_OUTPUT) 1 "Depth"
|
||||
Name 133 "psout"
|
||||
Name 141 "@entryPointOutput"
|
||||
Name 144 "g_tTex1df4"
|
||||
Name 146 "Color"
|
||||
Name 148 "Depth"
|
||||
Name 141 "Color"
|
||||
Name 145 "Depth"
|
||||
Name 149 "g_tTex1df4"
|
||||
Decorate 11(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 11(g_tTex1df4a) Binding 1
|
||||
Decorate 15(g_sSamp) DescriptorSet 0
|
||||
|
|
@ -376,10 +395,10 @@ gl_FragCoord origin is upper left
|
|||
Decorate 106(g_tTexcdi4a) DescriptorSet 0
|
||||
Decorate 118(g_tTexcdu4a) DescriptorSet 0
|
||||
MemberDecorate 131(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 144(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 144(g_tTex1df4) Binding 0
|
||||
Decorate 146(Color) Location 0
|
||||
Decorate 148(Depth) BuiltIn FragDepth
|
||||
Decorate 141(Color) Location 0
|
||||
Decorate 145(Depth) BuiltIn FragDepth
|
||||
Decorate 149(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 149(g_tTex1df4) Binding 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -450,13 +469,11 @@ gl_FragCoord origin is upper left
|
|||
135: 130(fvec4) ConstantComposite 134 134 134 134
|
||||
136: TypePointer Function 130(fvec4)
|
||||
138: 23(int) Constant 1
|
||||
140: TypePointer Output 131(PS_OUTPUT)
|
||||
141(@entryPointOutput): 140(ptr) Variable Output
|
||||
144(g_tTex1df4): 10(ptr) Variable UniformConstant
|
||||
145: TypePointer Output 130(fvec4)
|
||||
146(Color): 145(ptr) Variable Output
|
||||
147: TypePointer Output 6(float)
|
||||
148(Depth): 147(ptr) Variable Output
|
||||
140: TypePointer Output 130(fvec4)
|
||||
141(Color): 140(ptr) Variable Output
|
||||
144: TypePointer Output 6(float)
|
||||
145(Depth): 144(ptr) Variable Output
|
||||
149(g_tTex1df4): 10(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(txval10): 7(ptr) Variable Function
|
||||
|
|
@ -536,7 +553,11 @@ gl_FragCoord origin is upper left
|
|||
Store 137 135
|
||||
139: 7(ptr) AccessChain 133(psout) 138
|
||||
Store 139 134
|
||||
142:131(PS_OUTPUT) Load 133(psout)
|
||||
Store 141(@entryPointOutput) 142
|
||||
142: 136(ptr) AccessChain 133(psout) 24
|
||||
143: 130(fvec4) Load 142
|
||||
Store 141(Color) 143
|
||||
146: 7(ptr) AccessChain 133(psout) 138
|
||||
147: 6(float) Load 146
|
||||
Store 145(Depth) 147
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue