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:
@@ -321,7 +321,7 @@ local_size = (1, 1, 1)
|
||||
0:? 'gs_ua4' (global 4-component vector of uint)
|
||||
0:? 'gs_ub4' (global 4-component vector of uint)
|
||||
0:? 'gs_uc4' (global 4-component vector of uint)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'inF0' (layout(location=0 ) in 4-component vector of float)
|
||||
0:? 'inF1' (layout(location=1 ) in 4-component vector of float)
|
||||
0:? 'inF2' (layout(location=2 ) in 4-component vector of float)
|
||||
@@ -654,7 +654,7 @@ local_size = (1, 1, 1)
|
||||
0:? 'gs_ua4' (global 4-component vector of uint)
|
||||
0:? 'gs_ub4' (global 4-component vector of uint)
|
||||
0:? 'gs_uc4' (global 4-component vector of uint)
|
||||
0:? '@entryPointOutput' (out 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'inF0' (layout(location=0 ) in 4-component vector of float)
|
||||
0:? 'inF1' (layout(location=1 ) in 4-component vector of float)
|
||||
0:? 'inF2' (layout(location=2 ) in 4-component vector of float)
|
||||
|
||||
Reference in New Issue
Block a user