layers: Replace iterative DS Get.* with maps/sets
authorJohn Zulauf <jzulauf@lunarg.com>
Fri, 22 Dec 2017 23:47:09 +0000 (16:47 -0700)
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>
Fri, 5 Jan 2018 00:08:05 +0000 (17:08 -0700)
commit598bbcca827760018f9dd8e0ffede7dc0dc97688
tree903c6d1e74dd4d6cadb25e056be16f4dd742ebe6
parent30927cd8115b99abbbc96213543144d949f1a2b9
layers: Replace iterative DS Get.* with maps/sets

Profiling indicated hot spots in DescriptorSet Get functions which
iterated in binding space to lookup values.  Replaced iterative searches
with maps/sets.

Additionally simplified construction, optimized map/set creation and
Get.* for DescriptorSet and DescriptorSetLayout.

Change-Id: Ia2948e56333d3643d4377b39e75acf4c951d558b
layers/descriptor_sets.cpp
layers/descriptor_sets.h