blob: fc6b8c245beb638237d06f2488f4d29dbd74b5dd [file] [log] [blame]
Jesse Halld02edcb2015-09-08 07:44:48 -07001/*
2 * Copyright 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Jesse Hall04f4f472015-08-16 19:51:04 -070017#ifndef LIBVULKAN_LOADER_H
18#define LIBVULKAN_LOADER_H 1
19
Jesse Hall6bd5dfa2016-01-16 17:13:30 -080020#include <bitset>
Chia-I Wucc5e2762016-03-24 13:01:16 +080021#include <vulkan/vulkan.h>
Jesse Hall715b86a2016-01-16 16:34:29 -080022#include "debug_report.h"
Chia-I Wucc5e2762016-03-24 13:01:16 +080023#include "driver.h"
Chia-I Wude82e272016-03-26 07:01:55 +080024#include "swapchain.h"
Jesse Hall04f4f472015-08-16 19:51:04 -070025
Chia-I Wu136b8eb2016-03-24 15:01:52 +080026struct hwvulkan_device_t;
27
Jesse Hall04f4f472015-08-16 19:51:04 -070028namespace vulkan {
29
Jesse Hall1f91d392015-12-11 16:28:44 -080030// -----------------------------------------------------------------------------
Jesse Hall04f4f472015-08-16 19:51:04 -070031// loader.cpp
32
Jesse Hall1f91d392015-12-11 16:28:44 -080033const VkAllocationCallbacks* GetAllocator(VkInstance instance);
34const VkAllocationCallbacks* GetAllocator(VkDevice device);
Jesse Hall715b86a2016-01-16 16:34:29 -080035VkInstance GetDriverInstance(VkInstance instance);
Chia-I Wucc5e2762016-03-24 13:01:16 +080036const driver::InstanceDriverTable& GetDriverDispatch(VkInstance instance);
37const driver::DeviceDriverTable& GetDriverDispatch(VkDevice device);
38const driver::DeviceDriverTable& GetDriverDispatch(VkQueue queue);
Chia-I Wu62262232016-03-26 07:06:44 +080039driver::DebugReportCallbackList& GetDebugReportCallbacks(VkInstance instance);
Jesse Hall04f4f472015-08-16 19:51:04 -070040
Jesse Hall04f4f472015-08-16 19:51:04 -070041} // namespace vulkan
42
43#endif // LIBVULKAN_LOADER_H