layers: Fix object lifetime bugs in DescriptorSetLayout
authorTobin Ehlis <tobine@google.com>
Tue, 26 Apr 2016 17:06:05 +0000 (11:06 -0600)
committerTobin Ehlis <tobine@google.com>
Tue, 26 Apr 2016 21:57:18 +0000 (15:57 -0600)
commit113974e4b1fabca6005fb89e4784602503618999
tree61aa8b1bc4add17e9cd2fa3aa9b83384e09f0a61
parentb9a863845ec79e296c889406ff6658f62db57c42
layers: Fix object lifetime bugs in DescriptorSetLayout

Incomplete copy construction of DescriptorSetLayout and safe_* types
causes embedded pointers (such as pImmutableSamplers) to become invalid
before they should. Fixing this for now by moving DescriptorSetLayout
and its embedded safe_* struct to ptrs within their containers and
explicitly deleting.
layers/core_validation.cpp
layers/descriptor_sets.h