1
// Copyright 2019 The ANGLE Project 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.
5
// SemaphoreVk.h: Defines the class interface for SemaphoreVk,
6
// implementing SemaphoreImpl.
8
#ifndef LIBANGLE_RENDERER_VULKAN_SEMAPHOREVK_H_
9
#define LIBANGLE_RENDERER_VULKAN_SEMAPHOREVK_H_
11
#include "libANGLE/renderer/SemaphoreImpl.h"
12
#include "libANGLE/renderer/vulkan/vk_helpers.h"
13
#include "libANGLE/renderer/vulkan/vk_wrapper.h"
18
class SemaphoreVk : public SemaphoreImpl
22
~SemaphoreVk() override;
24
void onDestroy(const gl::Context *context) override;
26
angle::Result importFd(gl::Context *context, gl::HandleType handleType, GLint fd) override;
28
angle::Result wait(gl::Context *context,
29
const gl::BufferBarrierVector &bufferBarriers,
30
const gl::TextureBarrierVector &textureBarriers) override;
32
angle::Result signal(gl::Context *context,
33
const gl::BufferBarrierVector &bufferBarriers,
34
const gl::TextureBarrierVector &textureBarriers) override;
37
angle::Result importOpaqueFd(gl::Context *context, GLint fd);
39
vk::Semaphore mSemaphore;
44
#endif // LIBANGLE_RENDERER_VULKAN_SEMAPHOREVK_H_