aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUtil.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-12-13 10:20:04 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-13 15:46:12 +0000
commit81b8059d8b8c87aed19f773a4cc59f4528122d67 (patch)
tree496e34e60bf5d28ac7f30a27aa6a5fc42cae041c /src/gpu/vk/GrVkUtil.h
parentc25db637532cd10dde7855d868c0d033e96f61f2 (diff)
Start removing uses of VkFormatToPixelConfig in vulkan backend
Bug: skia: Change-Id: I2c8e86b9e8ca6a33913be347a3c65af963c5fd12 Reviewed-on: https://skia-review.googlesource.com/84341 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/vk/GrVkUtil.h')
-rw-r--r--src/gpu/vk/GrVkUtil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkUtil.h b/src/gpu/vk/GrVkUtil.h
index 72ed483d81..01688c8486 100644
--- a/src/gpu/vk/GrVkUtil.h
+++ b/src/gpu/vk/GrVkUtil.h
@@ -37,6 +37,13 @@ bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format);
*/
GrPixelConfig GrVkFormatToPixelConfig(VkFormat format);
+bool GrVkFormatIsSupported(VkFormat);
+
+/**
+ * Returns true if the passed in VkFormat and GrPixelConfig are compatible with each other.
+ */
+bool GrVkFormatPixelConfigPairIsValid(VkFormat, GrPixelConfig);
+
/**
* Returns true if the given vulkan texture format is sRGB encoded.
* Also provides the non-sRGB version, if there is one.