layers: Convert fundamental type enum to bit field
authorChris Forbes <chrisforbes@google.com>
Fri, 10 Mar 2017 01:58:08 +0000 (14:58 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 26 Mar 2017 22:25:49 +0000 (11:25 +1300)
commit5d232360def4ab36f0310a2c8a7fca99d311fa1e
treed28e490feac1ce408d485aa4a51490190d864ba9
parent9e9c313f43ac1060fe3c182ce334356e7f7a3f08
layers: Convert fundamental type enum to bit field

Some VkFormats can be consumed as multiple types -- specifically,
depth/stencil is either float or uint, depending on which aspect we
consume.

Convert to bitfield, and require intersection rather than equality.
While we're at it, drop out some weird special-casing for unknown
component types-- this is left over from when shader validation was much
less complete.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/core_validation.cpp