blob: dd51a5e6bf41933d2a1992e05105cf4c7f936a71 [file] [log] [blame]
// 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_