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
|
|
@ -151,10 +151,20 @@ ERROR: node is still EOpNull!
|
|||
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)
|
||||
|
|
@ -315,10 +325,20 @@ ERROR: node is still EOpNull!
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue