diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-09-22 16:49:47 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-27 09:08:45 +1300 |
| commit | 5772b8fcbb80dd28f1930cb25398588094eac46c (patch) | |
| tree | f9788e353b76d703ca01a9d27a1b53b1007e06ba /layers | |
| parent | 6a441764d9b4f423860811e1be23d6afdc4a5bc2 (diff) | |
| download | usermoji-5772b8fcbb80dd28f1930cb25398588094eac46c.tar.xz | |
layers: Add IMAGE_NODE::acquired flag
This is necessary for moving the image ownership stuff across from
swapchain
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/core_validation_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index e55a5ceb..33b17a46 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -181,10 +181,11 @@ class IMAGE_NODE : public BASE_NODE { VkImageCreateInfo createInfo; VkDeviceMemory mem; bool valid; // If this is a swapchain image backing memory track valid here as it doesn't have DEVICE_MEM_INFO + bool acquired; // If this is a swapchain image, has it been acquired by the app. VkDeviceSize memOffset; VkDeviceSize memSize; IMAGE_NODE(VkImage img, const VkImageCreateInfo *pCreateInfo) - : image(img), createInfo(*pCreateInfo), mem(VK_NULL_HANDLE), valid(false), memOffset(0), memSize(0){}; + : image(img), createInfo(*pCreateInfo), mem(VK_NULL_HANDLE), valid(false), acquired(false), memOffset(0), memSize(0){}; IMAGE_NODE(IMAGE_NODE const &rh_obj) = delete; }; |
