aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-03-18 12:39:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-18 12:39:05 -0700
commitd2497f35ce9e9e70ab6c7acd82b212c80cb86d3a (patch)
treef66fe30164e8edc3a8979b0d105d23f45849c3f6 /include/gpu
parente820dfebbc652bfc4a653f07a29f5fe371eb019b (diff)
Enable extension support and debug layer.
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/vk/GrVkInterface.h21
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