blob: 3b5351a0dfd37f8bd2fc772aeaf785a951f66e6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains helpers used by VulkanImplementation's on POSIX platforms
// to import/export Vulkan objects to POSIX file descriptors. They should not
// be used directly except in VulkanImplementation children.
#ifndef GPU_VULKAN_VULKAN_POSIX_UTIL_H_
#define GPU_VULKAN_VULKAN_POSIX_UTIL_H_
#include <vulkan/vulkan.h>
#include "gpu/vulkan/semaphore_handle.h"
#include "gpu/vulkan/vulkan_export.h"
namespace gpu {
VULKAN_EXPORT VkSemaphore ImportVkSemaphoreHandlePosix(VkDevice vk_device,
SemaphoreHandle handle);
VULKAN_EXPORT SemaphoreHandle
GetVkSemaphoreHandlePosix(VkDevice vk_device,
VkSemaphore vk_semaphore,
VkExternalSemaphoreHandleTypeFlagBits handle_type);
} // namespace gpu
#endif // GPU_VULKAN_VULKAN_POSIX_UTIL_H_
|