blob: 6f39d2537afe39885a8160f7b6b469f34bab69f8 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_ESCHER_UTIL_CHECK_VULKAN_SUPPORT_H_
#define LIB_ESCHER_UTIL_CHECK_VULKAN_SUPPORT_H_
namespace escher {
// This attempts to create a VkInstance and then a VkDevice, and returns true
// if successful and false otherwise. These are both destroyed before the
// function returns. Therefore, this shouldn't be called from production code
// where fast startup time is an issue.
bool VulkanIsSupported();
} // namespace escher
#endif // LIB_ESCHER_UTIL_CHECK_VULKAN_SUPPORT_H_