1 // 2 // Copyright 2024 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 // FenceNVWgpu.h: 7 // Defines the class interface for FenceNVWgpu, implementing FenceNVImpl. 8 // 9 10 #ifndef LIBANGLE_RENDERER_WGPU_FENCENVWGPU_H_ 11 #define LIBANGLE_RENDERER_WGPU_FENCENVWGPU_H_ 12 13 #include "libANGLE/renderer/FenceNVImpl.h" 14 15 namespace rx 16 { 17 class FenceNVWgpu : public FenceNVImpl 18 { 19 public: 20 FenceNVWgpu(); 21 ~FenceNVWgpu() override; 22 onDestroy(const gl::Context * context)23 void onDestroy(const gl::Context *context) override {} 24 angle::Result set(const gl::Context *context, GLenum condition) override; 25 angle::Result test(const gl::Context *context, GLboolean *outFinished) override; 26 angle::Result finish(const gl::Context *context) override; 27 }; 28 } // namespace rx 29 30 #endif // LIBANGLE_RENDERER_WGPU_FENCENVWGPU_H_ 31