Flutter Engine
 
Loading...
Searching...
No Matches
vulkan_skia_proc_table.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7namespace vulkan {
8
9skgpu::VulkanGetProc CreateSkiaGetProc(
11 if (!vk || !vk->IsValid()) {
12 return nullptr;
13 }
14
15 return [vk](const char* proc_name, VkInstance instance, VkDevice device) {
16 if (device != VK_NULL_HANDLE) {
17 auto result =
18 vk->AcquireProc(proc_name, VulkanHandle<VkDevice>{device, nullptr});
19 if (result != nullptr) {
20 return result;
21 }
22 }
23
24 return vk->AcquireProc(proc_name,
26 };
27}
28
29} // namespace vulkan
VkDevice device
Definition main.cc:69
VkInstance instance
Definition main.cc:64
skgpu::VulkanGetProc CreateSkiaGetProc(const fml::RefPtr< vulkan::VulkanProcTable > &vk)