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.cpp:
7 // Implements the class methods for SyncWgpu.
8 //
9
10 #include "libANGLE/renderer/wgpu/SyncWgpu.h"
11
12 #include "common/debug.h"
13
14 namespace rx
15 {
16
SyncWgpu()17 SyncWgpu::SyncWgpu() : SyncImpl() {}
18
~SyncWgpu()19 SyncWgpu::~SyncWgpu() {}
20
set(const gl::Context * context,GLenum condition,GLbitfield flags)21 angle::Result SyncWgpu::set(const gl::Context *context, GLenum condition, GLbitfield flags)
22 {
23 return angle::Result::Continue;
24 }
25
clientWait(const gl::Context * context,GLbitfield flags,GLuint64 timeout,GLenum * outResult)26 angle::Result SyncWgpu::clientWait(const gl::Context *context,
27 GLbitfield flags,
28 GLuint64 timeout,
29 GLenum *outResult)
30 {
31 *outResult = GL_ALREADY_SIGNALED;
32 return angle::Result::Continue;
33 }
34
serverWait(const gl::Context * context,GLbitfield flags,GLuint64 timeout)35 angle::Result SyncWgpu::serverWait(const gl::Context *context, GLbitfield flags, GLuint64 timeout)
36 {
37 return angle::Result::Continue;
38 }
39
getStatus(const gl::Context * context,GLint * outResult)40 angle::Result SyncWgpu::getStatus(const gl::Context *context, GLint *outResult)
41 {
42 *outResult = GL_SIGNALED;
43 return angle::Result::Continue;
44 }
45
46 } // namespace rx
47