HLSL: Flatten a return struct from an entry point and assign locations after flattening.
Locations now get assigned in order, but skipping built-ins, which can be done post flattening.
This commit is contained in:
@@ -354,7 +354,7 @@ gl_FragCoord origin is upper left
|
||||
0:141 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:141 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
|
||||
|
||||
@@ -716,7 +716,7 @@ gl_FragCoord origin is upper left
|
||||
0:141 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:141 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
|
||||
Reference in New Issue
Block a user