diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/vk/GrVkTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkTypes.h b/include/gpu/vk/GrVkTypes.h index deee409e6f..94b765f668 100644 --- a/include/gpu/vk/GrVkTypes.h +++ b/include/gpu/vk/GrVkTypes.h @@ -30,6 +30,10 @@ * Vulkan textures are really const GrVkImageInfo* */ struct GrVkImageInfo { + /** + * If the image's format is sRGB (GrVkFormatIsSRGB returns true), then the image must have + * been created with VkImageCreateFlags containing VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT. + */ VkImage fImage; VkDeviceMemory fAlloc; // can be VK_NULL_HANDLE iff Tex is an RT and uses borrow semantics VkImageTiling fImageTiling; |