diff options
author | jvanverth <jvanverth@google.com> | 2016-03-18 12:39:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 12:39:05 -0700 |
commit | d2497f35ce9e9e70ab6c7acd82b212c80cb86d3a (patch) | |
tree | f66fe30164e8edc3a8979b0d105d23f45849c3f6 /include/gpu | |
parent | e820dfebbc652bfc4a653f07a29f5fe371eb019b (diff) |
Enable extension support and debug layer.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785813002
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1785813002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/vk/GrVkInterface.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkInterface.h b/include/gpu/vk/GrVkInterface.h index 5676b86e3a..a6cfba73ab 100644 --- a/include/gpu/vk/GrVkInterface.h +++ b/include/gpu/vk/GrVkInterface.h @@ -10,6 +10,8 @@ #include "SkRefCnt.h" +#include "GrVkExtensions.h" + #include "vulkan/vulkan.h" //////////////////////////////////////////////////////////////////////////////// @@ -54,6 +56,21 @@ public: // function pointers have been initialized for Vulkan version. bool validate() const; + GrVkExtensions fExtensions; + + bool hasInstanceExtension(const char ext[]) const { + return fExtensions.hasInstanceExtension(ext); + } + bool hasDeviceExtension(const char ext[]) const { + return fExtensions.hasDeviceExtension(ext); + } + bool hasInstanceLayer(const char ext[]) const { + return fExtensions.hasInstanceLayer(ext); + } + bool hasDeviceLayer(const char ext[]) const { + return fExtensions.hasDeviceLayer(ext); + } + /** * The function pointers are in a struct so that we can have a compiler generated assignment * operator. @@ -212,7 +229,11 @@ public: VkPtr<PFN_vkGetDisplayPlaneCapabilitiesKHR> fGetDisplayPlaneCapabilitiesKHR; VkPtr<PFN_vkCreateDisplayPlaneSurfaceKHR> fCreateDisplayPlaneSurfaceKHR; VkPtr<PFN_vkCreateSharedSwapchainsKHR> fCreateSharedSwapchainsKHR; + VkPtr<PFN_vkCreateDebugReportCallbackEXT> fCreateDebugReportCallbackEXT; + VkPtr<PFN_vkDebugReportMessageEXT> fDebugReportMessageEXT; + VkPtr<PFN_vkDestroyDebugReportCallbackEXT> fDestroyDebugReportCallbackEXT; } fFunctions; + }; #endif |