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
|
|
@ -88,10 +88,20 @@ gl_FragCoord origin is upper left
|
|||
0:52 1 (const int)
|
||||
0:52 Constant:
|
||||
0:52 1.000000
|
||||
0:54 Sequence
|
||||
0:54 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:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:54 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:54 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:54 Constant:
|
||||
0:54 0 (const int)
|
||||
0:54 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:54 Depth: direct index for structure (temp float FragDepth)
|
||||
0:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:54 Constant:
|
||||
0:54 1 (const int)
|
||||
0:54 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -205,10 +215,20 @@ gl_FragCoord origin is upper left
|
|||
0:52 1 (const int)
|
||||
0:52 Constant:
|
||||
0:52 1.000000
|
||||
0:54 Sequence
|
||||
0:54 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:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:54 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:54 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:54 Constant:
|
||||
0:54 0 (const int)
|
||||
0:54 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:54 Depth: direct index for structure (temp float FragDepth)
|
||||
0:54 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:54 Constant:
|
||||
0:54 1 (const int)
|
||||
0:54 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
|
@ -231,14 +251,14 @@ gl_FragCoord origin is upper left
|
|||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 109
|
||||
// Id's are bound by 110
|
||||
|
||||
Capability Shader
|
||||
Capability ImageGatherExtended
|
||||
Capability ImageMSArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 92 106 108
|
||||
EntryPoint Fragment 4 "main" 92 96
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "g_tTex2dmsf4"
|
||||
|
|
@ -254,15 +274,14 @@ gl_FragCoord origin is upper left
|
|||
MemberName 80(PS_OUTPUT) 0 "Color"
|
||||
MemberName 80(PS_OUTPUT) 1 "Depth"
|
||||
Name 82 "psout"
|
||||
Name 92 "@entryPointOutput"
|
||||
Name 97 "g_sSamp"
|
||||
Name 99 "c1"
|
||||
Name 101 "c4"
|
||||
Name 102 "o1"
|
||||
Name 103 "o3"
|
||||
Name 104 "o4"
|
||||
Name 106 "Color"
|
||||
Name 108 "Depth"
|
||||
Name 92 "Color"
|
||||
Name 96 "Depth"
|
||||
Name 102 "g_sSamp"
|
||||
Name 104 "c1"
|
||||
Name 106 "c4"
|
||||
Name 107 "o1"
|
||||
Name 108 "o3"
|
||||
Name 109 "o4"
|
||||
Decorate 9(g_tTex2dmsf4) DescriptorSet 0
|
||||
Decorate 21(g_tTex2dmsi4) DescriptorSet 0
|
||||
Decorate 29(g_tTex2dmsu4) DescriptorSet 0
|
||||
|
|
@ -270,10 +289,10 @@ gl_FragCoord origin is upper left
|
|||
Decorate 58(g_tTex2dmsi4a) DescriptorSet 0
|
||||
Decorate 64(g_tTex2dmsu4a) DescriptorSet 0
|
||||
MemberDecorate 80(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 97(g_sSamp) DescriptorSet 0
|
||||
Decorate 97(g_sSamp) Binding 0
|
||||
Decorate 106(Color) Location 0
|
||||
Decorate 108(Depth) BuiltIn FragDepth
|
||||
Decorate 92(Color) Location 0
|
||||
Decorate 96(Depth) BuiltIn FragDepth
|
||||
Decorate 102(g_sSamp) DescriptorSet 0
|
||||
Decorate 102(g_sSamp) Binding 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -316,22 +335,20 @@ gl_FragCoord origin is upper left
|
|||
86: TypePointer Function 17(fvec4)
|
||||
88: 11(int) Constant 1
|
||||
89: TypePointer Function 6(float)
|
||||
91: TypePointer Output 80(PS_OUTPUT)
|
||||
92(@entryPointOutput): 91(ptr) Variable Output
|
||||
95: TypeSampler
|
||||
96: TypePointer UniformConstant 95
|
||||
97(g_sSamp): 96(ptr) Variable UniformConstant
|
||||
98: TypePointer UniformConstant 11(int)
|
||||
99(c1): 98(ptr) Variable UniformConstant
|
||||
100: TypePointer UniformConstant 24(ivec4)
|
||||
101(c4): 100(ptr) Variable UniformConstant
|
||||
102(o1): 98(ptr) Variable UniformConstant
|
||||
103(o3): 52(ptr) Variable UniformConstant
|
||||
104(o4): 100(ptr) Variable UniformConstant
|
||||
105: TypePointer Output 17(fvec4)
|
||||
106(Color): 105(ptr) Variable Output
|
||||
107: TypePointer Output 6(float)
|
||||
108(Depth): 107(ptr) Variable Output
|
||||
91: TypePointer Output 17(fvec4)
|
||||
92(Color): 91(ptr) Variable Output
|
||||
95: TypePointer Output 6(float)
|
||||
96(Depth): 95(ptr) Variable Output
|
||||
100: TypeSampler
|
||||
101: TypePointer UniformConstant 100
|
||||
102(g_sSamp): 101(ptr) Variable UniformConstant
|
||||
103: TypePointer UniformConstant 11(int)
|
||||
104(c1): 103(ptr) Variable UniformConstant
|
||||
105: TypePointer UniformConstant 24(ivec4)
|
||||
106(c4): 105(ptr) Variable UniformConstant
|
||||
107(o1): 103(ptr) Variable UniformConstant
|
||||
108(o3): 52(ptr) Variable UniformConstant
|
||||
109(o4): 105(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
82(psout): 81(ptr) Variable Function
|
||||
|
|
@ -381,7 +398,11 @@ gl_FragCoord origin is upper left
|
|||
Store 87 85
|
||||
90: 89(ptr) AccessChain 82(psout) 88
|
||||
Store 90 84
|
||||
93:80(PS_OUTPUT) Load 82(psout)
|
||||
Store 92(@entryPointOutput) 93
|
||||
93: 86(ptr) AccessChain 82(psout) 83
|
||||
94: 17(fvec4) Load 93
|
||||
Store 92(Color) 94
|
||||
97: 89(ptr) AccessChain 82(psout) 88
|
||||
98: 6(float) Load 97
|
||||
Store 96(Depth) 98
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue