diff options
author | Greg Daniel <egdaniel@google.com> | 2019-01-28 13:15:05 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2019-01-28 19:01:46 +0000 |
commit | 41f0e28fd5bd11a7ebf5400f1f046d882de1e4a7 (patch) | |
tree | 941e796c355df24a57ff5a916f2670c893bf826d /include | |
parent | 9850fd23a0f2313c5101d7a28c553588dc343286 (diff) | |
download | skqp-41f0e28fd5bd11a7ebf5400f1f046d882de1e4a7.tar.gz |
Add MaxAPIVersion to GrVkBackendContext.
This moves us to the correct way of handling the correct version of
Vulkan that the client wants us to use.
Bug: skia:
Change-Id: I6c7962b5d2d48ae142c6a701c30f5af3801ac99b
Reviewed-on: https://skia-review.googlesource.com/c/187382
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/vk/GrVkBackendContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gpu/vk/GrVkBackendContext.h b/include/gpu/vk/GrVkBackendContext.h index f49c36f7e3..8617603041 100644 --- a/include/gpu/vk/GrVkBackendContext.h +++ b/include/gpu/vk/GrVkBackendContext.h @@ -49,7 +49,10 @@ struct SK_API GrVkBackendContext { VkQueue fQueue; uint32_t fGraphicsQueueIndex; uint32_t fMinAPIVersion; // Deprecated. Set fInstanceVersion instead. - uint32_t fInstanceVersion = 0; + uint32_t fInstanceVersion = 0; // Deprecated. Set fMaxApiVersion instead. + // The max api version set here should match the value set in VkApplicationInfo::apiVersion when + // then VkInstance was created. + uint32_t fMaxAPIVersion = 0; uint32_t fExtensions = 0; // Deprecated. Use fVkExtensions instead. const GrVkExtensions* fVkExtensions = nullptr; uint32_t fFeatures; // Deprecated. Use either fDeviceFeatures[2] instead. |