Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/gpu/vk/GrVkInterface.h

Issue 1785813002: Enable extension support and debug layer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes for line endings and versioning Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/vk/GrVkExtensions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/vk/GrVkExtensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698