31 if (!sk_gpu_test::LoadVkLibraryAndGetProcAddrFuncs(&instProc)) {
38 if (!sk_gpu_test::CreateVkBackendContext(instProc, &backendContext, extensions,
39 features, &debugCallback,
40 nullptr, sk_gpu_test::CanPresentFn(),
42 sk_gpu_test::FreeVulkanFeaturesStructs(features);
49 backendContext.
fInstance,
"vkDestroyDebugReportCallbackEXT");
74 localVkDeviceWaitIdle(fVulkan.
fDevice);
75 localVkDestroyDevice(fVulkan.
fDevice,
nullptr);
76#ifdef SK_ENABLE_VK_LAYERS
78 fDestroyDebugReportCallbackEXT(fVulkan.
fInstance, fDebugCallback,
nullptr);
83 (void)fDestroyDebugReportCallbackEXT;
85 localVkDestroyInstance(fVulkan.
fInstance,
nullptr);
88 sk_gpu_test::FreeVulkanFeaturesStructs(fFeatures);
#define ACQUIRE_VK_PROC_LOCAL(name, inst)
bool gCreateProtectedContext
~VulkanTestContext() override
skgpu::ContextType contextType() override
std::unique_ptr< skgpu::graphite::Context > makeContext(const TestOptions &) override
static std::unique_ptr< GraphiteTestContext > Make()
SK_API std::unique_ptr< Context > MakeVulkan(const VulkanBackendContext &, const ContextOptions &)
sk_sp< VulkanMemoryAllocator > fMemoryAllocator
bool fStoreContextRefInRecorder
ContextOptionsPriv * fOptionsPriv