diff options
Diffstat (limited to 'include/gpu/vk/GrVkBackendContext.h')
-rw-r--r-- | include/gpu/vk/GrVkBackendContext.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkBackendContext.h b/include/gpu/vk/GrVkBackendContext.h index fe018e494f..d8006df20e 100644 --- a/include/gpu/vk/GrVkBackendContext.h +++ b/include/gpu/vk/GrVkBackendContext.h @@ -30,6 +30,12 @@ enum GrVkFeatureFlags { kSampleRateShading_GrVkFeatureFlag = 0x0004, }; +using GrVkGetProc = std::function<PFN_vkVoidFunction( + const char*, // function name + VkInstance, // instance or VK_NULL_HANDLE + VkDevice // device or VK_NULL_HANDLE + )>; + // The BackendContext contains all of the base Vulkan objects needed by the GrVkGpu. The assumption // is that the client will set these up and pass them to the GrVkGpu constructor. The VkDevice // created must support at least one graphics queue, which is passed in as well. @@ -49,6 +55,7 @@ struct SK_API GrVkBackendContext { uint32_t fFeatures; sk_sp<const GrVkInterface> fInterface; sk_sp<GrVkMemoryAllocator> fMemoryAllocator; + GrVkGetProc fGetProc = nullptr; // This is deprecated and should be set to false. The client is responsible for managing the // lifetime of the VkInstance and VkDevice objects. |