aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-09-26 15:23:32 +1300
committerChris Forbes <chrisforbes@google.com>2016-09-27 09:30:02 +1300
commitd804a2666b1f6715f5f98d3d711c6809e76edb65 (patch)
tree51376107239bfeb6ea0fd196afae506819ec8244
parent17f09ce9113e0282f9b476b1e11bfe8793f1f7d9 (diff)
downloadusermoji-d804a2666b1f6715f5f98d3d711c6809e76edb65.tar.xz
layers: Remove unnecessary constructors from new _STATE classes
Signed-off-by: Chris Forbes <chrisforbes@google.com>
-rw-r--r--layers/core_validation_types.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h
index 33b17a46..1ef3bd82 100644
--- a/layers/core_validation_types.h
+++ b/layers/core_validation_types.h
@@ -161,11 +161,8 @@ class BUFFER_VIEW_STATE : public BASE_NODE {
public:
VkBufferView buffer_view;
VkBufferViewCreateInfo create_info;
- BUFFER_VIEW_STATE() : buffer_view(VK_NULL_HANDLE), create_info{} {};
BUFFER_VIEW_STATE(VkBufferView bv, const VkBufferViewCreateInfo *ci) : buffer_view(bv), create_info(*ci){};
- BUFFER_VIEW_STATE(const BUFFER_VIEW_STATE &rh_obj) : buffer_view(rh_obj.buffer_view), create_info(rh_obj.create_info) {
- in_use.store(rh_obj.in_use.load());
- };
+ BUFFER_VIEW_STATE(const BUFFER_VIEW_STATE &rh_obj) = delete;
};
struct SAMPLER_NODE : public BASE_NODE {
@@ -194,11 +191,8 @@ class IMAGE_VIEW_STATE : public BASE_NODE {
public:
VkImageView image_view;
VkImageViewCreateInfo create_info;
- IMAGE_VIEW_STATE() : image_view(VK_NULL_HANDLE), create_info{} {};
IMAGE_VIEW_STATE(VkImageView iv, const VkImageViewCreateInfo *ci) : image_view(iv), create_info(*ci){};
- IMAGE_VIEW_STATE(const IMAGE_VIEW_STATE &rh_obj) : image_view(rh_obj.image_view), create_info(rh_obj.create_info) {
- in_use.store(rh_obj.in_use.load());
- };
+ IMAGE_VIEW_STATE(const IMAGE_VIEW_STATE &rh_obj) = delete;
};
// Simple struct to hold handle and type of object so they can be uniquely identified and looked up in appropriate map