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:
@@ -125,7 +125,7 @@ gl_FragCoord origin is upper left
|
||||
0:54 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:54 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)
|
||||
0:? 'c' (layout(location=1 ) in int)
|
||||
0:? 'd' (layout(location=2 ) in int)
|
||||
@@ -260,7 +260,7 @@ gl_FragCoord origin is upper left
|
||||
0:54 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:54 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)
|
||||
0:? 'c' (layout(location=1 ) in int)
|
||||
0:? 'd' (layout(location=2 ) in int)
|
||||
|
||||
Reference in New Issue
Block a user