| // Copyright 2017 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 GARNET_LIB_UI_GFX_UTIL_VULKAN_UTILS_H_ |
| #define GARNET_LIB_UI_GFX_UTIL_VULKAN_UTILS_H_ |
| |
| #include <vulkan/vulkan.hpp> |
| |
| namespace scenic_impl { |
| namespace gfx { |
| |
| vk::SurfaceKHR CreateVulkanMagmaSurface(const vk::Instance& instance); |
| |
| // Determine a plausible memory type index for importing memory from VMOs. |
| uint32_t GetImportedMemoryTypeIndex(vk::PhysicalDevice physical_device, |
| vk::Device device); |
| |
| } // namespace gfx |
| } // namespace scenic_impl |
| |
| #endif // GARNET_LIB_UI_GFX_UTIL_VULKAN_UTILS_H_ |