layers: Add interface to get descriptor type from layout's global index
authorTobin Ehlis <tobine@google.com>
Tue, 26 Apr 2016 19:09:51 +0000 (13:09 -0600)
committerTobin Ehlis <tobine@google.com>
Tue, 26 Apr 2016 21:57:18 +0000 (15:57 -0600)
commit5ce51ded9e89ef81d30582c896598738265455ff
tree38b65d579d0e2093e025b6e95c745c9cd0cf268b
parent113974e4b1fabca6005fb89e4784602503618999
layers: Add interface to get descriptor type from layout's global index

We match up dynamic descriptor offsets one at a time so added an interface
to get descriptor type from the global index in addition to the original
pBinding index. This allows us to iterate over all of the descriptors in a
set and easily grab their type.
layers/core_validation.cpp
layers/descriptor_sets.h