• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // ProgramWgpu.h:
7 //    Defines the class interface for ProgramWgpu, implementing ProgramImpl.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_WGPU_PROGRAMWGPU_H_
11 #define LIBANGLE_RENDERER_WGPU_PROGRAMWGPU_H_
12 
13 #include "libANGLE/renderer/ProgramImpl.h"
14 
15 namespace rx
16 {
17 
18 class ProgramWgpu : public ProgramImpl
19 {
20   public:
21     ProgramWgpu(const gl::ProgramState &state);
22     ~ProgramWgpu() override;
23 
24     angle::Result load(const gl::Context *context,
25                        gl::BinaryInputStream *stream,
26                        std::shared_ptr<LinkTask> *loadTaskOut,
27                        egl::CacheGetResult *resultOut) override;
28     void save(const gl::Context *context, gl::BinaryOutputStream *stream) override;
29     void setBinaryRetrievableHint(bool retrievable) override;
30     void setSeparable(bool separable) override;
31 
32     angle::Result link(const gl::Context *context, std::shared_ptr<LinkTask> *linkTaskOut) override;
33     GLboolean validate(const gl::Caps &caps) override;
34 };
35 
36 }  // namespace rx
37 
38 #endif  // LIBANGLE_RENDERER_WGPU_PROGRAMWGPU_H_
39