diff options
author | brianosman <brianosman@google.com> | 2016-05-17 11:47:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-17 11:47:32 -0700 |
commit | 7888f780d85ced5c572f0227c16b88ed59bcffe5 (patch) | |
tree | 7970ad7d901d4fefc5b28545395590a886a1ad15 /include/gpu | |
parent | b55448b782dd3b8910c5cee0d2152cea65c54131 (diff) |
Set the "mutable format" bit on sRGB images at creation time.
This allows us to later create an image view with a linear format, for
legacy-mode non-sRGB access.
No actual API change (just a comment change in public header).
TBR=bsalomon@google.com
BUG=skia:5308
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1981333004
Review-Url: https://codereview.chromium.org/1981333004
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; |