layers: Add cache of memory binding set for perf
authorJohn Zulauf <jzulauf@lunarg.com>
Fri, 15 Dec 2017 21:35:06 +0000 (14:35 -0700)
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>
Fri, 5 Jan 2018 00:08:05 +0000 (17:08 -0700)
commit30927cd8115b99abbbc96213543144d949f1a2b9
treecefe248215b193613161dab90a427cb4654e9e21
parentc9c7afdf4aa0ce0d3929b9d831bb9e29d75a94ab
layers: Add cache of memory binding set for perf

Added a cache of the GetBoundMemory set to avoid its continual
regeneration at validation time.  Call appeared in profile for high
descriptor count sets.  Also cleaned-up memory binding state setting
to avoid code duplication.

Change-Id: I84beb411a83ab311d371be940e629fdb308f5458
layers/core_validation.cpp
layers/core_validation_types.h