• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // FenceNVVk.h:
7 //    Defines the class interface for FenceNVVk, implementing FenceNVImpl.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_VULKAN_FENCENVVK_H_
11 #define LIBANGLE_RENDERER_VULKAN_FENCENVVK_H_
12 
13 #include "libANGLE/renderer/FenceNVImpl.h"
14 #include "libANGLE/renderer/vulkan/SyncVk.h"
15 
16 namespace rx
17 {
18 class FenceNVVk : public FenceNVImpl
19 {
20   public:
21     FenceNVVk();
22     ~FenceNVVk() override;
23 
24     void onDestroy(const gl::Context *context) override;
25     angle::Result set(const gl::Context *context, GLenum condition) override;
26     angle::Result test(const gl::Context *context, GLboolean *outFinished) override;
27     angle::Result finish(const gl::Context *context) override;
28 
29   private:
30     vk::SyncHelper mFenceSync;
31 };
32 }  // namespace rx
33 
34 #endif  // LIBANGLE_RENDERER_VULKAN_FENCENVVK_H_
35