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 // QueryWgpu.h: 7 // Defines the class interface for QueryWgpu, implementing QueryImpl. 8 // 9 10 #ifndef LIBANGLE_RENDERER_WGPU_QUERYWGPU_H_ 11 #define LIBANGLE_RENDERER_WGPU_QUERYWGPU_H_ 12 13 #include "libANGLE/renderer/QueryImpl.h" 14 15 namespace rx 16 { 17 18 class QueryWgpu : public QueryImpl 19 { 20 public: 21 QueryWgpu(gl::QueryType type); 22 ~QueryWgpu() override; 23 24 angle::Result begin(const gl::Context *context) override; 25 angle::Result end(const gl::Context *context) override; 26 angle::Result queryCounter(const gl::Context *context) override; 27 angle::Result getResult(const gl::Context *context, GLint *params) override; 28 angle::Result getResult(const gl::Context *context, GLuint *params) override; 29 angle::Result getResult(const gl::Context *context, GLint64 *params) override; 30 angle::Result getResult(const gl::Context *context, GLuint64 *params) override; 31 angle::Result isResultAvailable(const gl::Context *context, bool *available) override; 32 }; 33 34 } // namespace rx 35 36 #endif // LIBANGLE_RENDERER_WGPU_QUERYWGPU_H_ 37