blob: 0a87ebde193d8113a87ad56a26f67c711f542c52 [file] [log] [blame]
Po-Hsien Wang00777b22019-04-24 16:37:09 -07001// 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
10namespace vkbench {
11bool IsLayersSupported(const std::vector<const char*>& kLayers);
12bool IsExtensionSupported(const std::vector<const char*>& kExtensions);
13uint32_t ChooseGFXQueueFamilies(const vk::PhysicalDevice& kPhysical_device);
14vk::Result CreateDebugUtilsMessengerEXT(
15 vk::Instance instance,
16 const vk::DebugUtilsMessengerCreateInfoEXT* kPcreateInfo,
17 const vk::AllocationCallbacks* kPallocator,
18 vk::DebugUtilsMessengerEXT* pdebug_messengeer);
19void DestroyDebugUtilsMessengerEXT(vk::Instance instance,
20 vk::DebugUtilsMessengerEXT debug_messengeer,
21 const vk::AllocationCallbacks* kPAllocator);
22} // namespace vkbench
23#endif