Po-Hsien Wang | 00777b2 | 2019-04-24 16:37:09 -0700 | [diff] [blame] | 1 | // Copyright 2019 The Chromium OS 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 | |
| 5 | #ifndef __VKBENCH_TESTUTIL_H__ |
| 6 | #define __VKBENCH_TESTUTIL_H__ |
| 7 | #include <string> |
| 8 | #include <vulkan/vulkan.hpp> |
| 9 | |
| 10 | namespace vkbench { |
| 11 | bool IsLayersSupported(const std::vector<const char*>& kLayers); |
| 12 | bool IsExtensionSupported(const std::vector<const char*>& kExtensions); |
| 13 | uint32_t ChooseGFXQueueFamilies(const vk::PhysicalDevice& kPhysical_device); |
| 14 | vk::Result CreateDebugUtilsMessengerEXT( |
| 15 | vk::Instance instance, |
| 16 | const vk::DebugUtilsMessengerCreateInfoEXT* kPcreateInfo, |
| 17 | const vk::AllocationCallbacks* kPallocator, |
| 18 | vk::DebugUtilsMessengerEXT* pdebug_messengeer); |
| 19 | void DestroyDebugUtilsMessengerEXT(vk::Instance instance, |
| 20 | vk::DebugUtilsMessengerEXT debug_messengeer, |
| 21 | const vk::AllocationCallbacks* kPAllocator); |
| 22 | } // namespace vkbench |
| 23 | #endif |