xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/wgpu/ShaderWgpu.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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 // ShaderWgpu.h:
7 //    Defines the class interface for ShaderWgpu, implementing ShaderImpl.
8 //
9 
10 #ifndef LIBANGLE_RENDERER_WGPU_SHADERWGPU_H_
11 #define LIBANGLE_RENDERER_WGPU_SHADERWGPU_H_
12 
13 #include "libANGLE/renderer/ShaderImpl.h"
14 
15 namespace rx
16 {
17 
18 class ShaderWgpu : public ShaderImpl
19 {
20   public:
21     ShaderWgpu(const gl::ShaderState &data);
22     ~ShaderWgpu() override;
23 
24     std::shared_ptr<ShaderTranslateTask> compile(const gl::Context *context,
25                                                  ShCompileOptions *options) override;
26     std::shared_ptr<ShaderTranslateTask> load(const gl::Context *context,
27                                               gl::BinaryInputStream *stream) override;
28 
29     std::string getDebugInfo() const override;
30 };
31 
32 }  // namespace rx
33 
34 #endif  // LIBANGLE_RENDERER_WGPU_SHADERWGPU_H_
35