xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/ProgramPipelineImpl.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2017 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 
7 // ProgramPipelineImpl.h: Defines the abstract rx::ProgramPipelineImpl class.
8 
9 #ifndef LIBANGLE_RENDERER_PROGRAMPIPELINEIMPL_H_
10 #define LIBANGLE_RENDERER_PROGRAMPIPELINEIMPL_H_
11 
12 #include "common/angleutils.h"
13 #include "libANGLE/ProgramPipeline.h"
14 
15 namespace rx
16 {
17 class ContextImpl;
18 
19 class ProgramPipelineImpl : public angle::NonCopyable
20 {
21   public:
ProgramPipelineImpl(const gl::ProgramPipelineState & state)22     ProgramPipelineImpl(const gl::ProgramPipelineState &state) : mState(state) {}
~ProgramPipelineImpl()23     virtual ~ProgramPipelineImpl() {}
destroy(const gl::Context * context)24     virtual void destroy(const gl::Context *context) {}
25 
26     virtual angle::Result link(const gl::Context *context,
27                                const gl::ProgramMergedVaryings &mergedVaryings,
28                                const gl::ProgramVaryingPacking &varyingPacking);
29 
30     virtual angle::Result onLabelUpdate(const gl::Context *context);
31 
getState()32     const gl::ProgramPipelineState &getState() const { return mState; }
33 
34   protected:
35     const gl::ProgramPipelineState &mState;
36 };
37 
38 }  // namespace rx
39 
40 #endif  // LIBANGLE_RENDERER_PROGRAMPIPELINEIMPL_H_
41