HLSL: Flatten whole-struct assigns and returns when targeting flattened I/O structs.
This commit is contained in:
@@ -43,10 +43,20 @@ ERROR: node is still EOpNull!
|
||||
0:20 1 (const int)
|
||||
0:20 Constant:
|
||||
0:20 1.000000
|
||||
0:22 Sequence
|
||||
0:22 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:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:22 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:22 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:22 Depth: direct index for structure (temp float FragDepth)
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
@@ -98,10 +108,20 @@ ERROR: node is still EOpNull!
|
||||
0:20 1 (const int)
|
||||
0:20 Constant:
|
||||
0:20 1.000000
|
||||
0:22 Sequence
|
||||
0:22 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:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:? Sequence
|
||||
0:? Sequence
|
||||
0:22 move second child to first child (temp 4-component vector of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:22 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 move second child to first child (temp float)
|
||||
0:? 'Depth' (out float FragDepth)
|
||||
0:22 Depth: direct index for structure (temp float FragDepth)
|
||||
0:22 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
|
||||
|
||||
Reference in New Issue
Block a user