diff options
-rw-r--r-- | include/gpu/vk/GrVkTypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkTypes.h b/include/gpu/vk/GrVkTypes.h index e57845ec5d..6c6ebc7737 100644 --- a/include/gpu/vk/GrVkTypes.h +++ b/include/gpu/vk/GrVkTypes.h @@ -83,6 +83,15 @@ struct GrVkImageInfo { , fFormat(VK_FORMAT_UNDEFINED) , fLevelCount(0) {} + GrVkImageInfo(VkImage image, GrVkAlloc alloc, VkImageTiling imageTiling, VkImageLayout layout, + VkFormat format, uint32_t levelCount) + : fImage(image) + , fAlloc(alloc) + , fImageTiling(imageTiling) + , fImageLayout(layout) + , fFormat(format) + , fLevelCount(levelCount) {} + GrVkImageInfo(const GrVkImageInfo& info, VkImageLayout layout) : fImage(info.fImage) , fAlloc(info.fAlloc) |