aboutsummaryrefslogtreecommitdiff
path: root/layers/multi.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2015-06-05 14:57:05 +1200
committerChris Forbes <chrisf@ijw.co.nz>2015-06-06 18:42:14 +1200
commit60e6cc64068573232464a44059b2c754c741dd7c (patch)
treeb3b364177b12ce419bf7ffe7e0bb42d1059b1254 /layers/multi.cpp
parent05b6bf2e1e49caf8033664db4074118e03c1d96c (diff)
downloadusermoji-60e6cc64068573232464a44059b2c754c741dd7c.tar.xz
shader_checker: Add typechecker support for extra array level
In the VS->GS, VS->TCS, or TES->GS interfaces, the consuming side of the interface is arrays of the producer's interface, as we're dealing with an array of vertices. This requires a bit more care in the typechecker: - Walking from the complete type down, the first time we see an array, it's the array-of-verts case; strip it off and compare the LHS to the element type. - If we see a leaf type without encountering the array type node, then we mismatch. For the purposes of this check, structs are treated as leaves. V2: Simplify slightly. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Tobin Ehlis <tobin@lunarg.com>
Diffstat (limited to 'layers/multi.cpp')
0 files changed, 0 insertions, 0 deletions