#include "gpu/vulkan/vulkan_function_pointers.h"
#include "base/check_op.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/no_destructor.h"
namespace gpu {
namespace {
NOINLINE void LogGetProcError(const char* funcName) { … }
}
VulkanFunctionPointers* GetVulkanFunctionPointers() { … }
VulkanFunctionPointers::VulkanFunctionPointers() = default;
VulkanFunctionPointers::~VulkanFunctionPointers() = default;
bool VulkanFunctionPointers::BindUnassociatedFunctionPointersFromLoaderLib(
base::NativeLibrary lib) { … }
bool VulkanFunctionPointers::BindUnassociatedFunctionPointersFromGetProcAddr(
PFN_vkGetInstanceProcAddr proc) { … }
bool VulkanFunctionPointers::BindUnassociatedFunctionPointersCommon() { … }
bool VulkanFunctionPointers::BindInstanceFunctionPointers(
VkInstance vk_instance,
uint32_t api_version,
const gfx::ExtensionSet& enabled_extensions) { … }
bool VulkanFunctionPointers::BindDeviceFunctionPointers(
VkDevice vk_device,
uint32_t api_version,
const gfx::ExtensionSet& enabled_extensions) { … }
void VulkanFunctionPointers::ResetForTesting() { … }
}