| Index: include/gpu/vk/GrVkInterface.h
|
| diff --git a/include/gpu/vk/GrVkInterface.h b/include/gpu/vk/GrVkInterface.h
|
| index 5676b86e3aed9bb1ab67313dafe95850948cbc54..a6cfba73abbd2568b7a6c3fbadbb191ba4582f09 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
|
|
|