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 // SyncWgpu.h: 7 // Defines the class interface for SyncWgpu, implementing SyncImpl. 8 // 9 10 #ifndef LIBANGLE_RENDERER_WGPU_FENCESYNCWGPU_H_ 11 #define LIBANGLE_RENDERER_WGPU_FENCESYNCWGPU_H_ 12 13 #include "libANGLE/renderer/SyncImpl.h" 14 15 namespace rx 16 { 17 class SyncWgpu : public SyncImpl 18 { 19 public: 20 SyncWgpu(); 21 ~SyncWgpu() override; 22 23 angle::Result set(const gl::Context *context, GLenum condition, GLbitfield flags) override; 24 angle::Result clientWait(const gl::Context *context, 25 GLbitfield flags, 26 GLuint64 timeout, 27 GLenum *outResult) override; 28 angle::Result serverWait(const gl::Context *context, 29 GLbitfield flags, 30 GLuint64 timeout) override; 31 angle::Result getStatus(const gl::Context *context, GLint *outResult) override; 32 }; 33 } // namespace rx 34 35 #endif // LIBANGLE_RENDERER_WGPU_FENCESYNCWGPU_H_ 36