1 #ifndef MSP_GL_PIPELINESTATE_BACKEND_H_
2 #define MSP_GL_PIPELINESTATE_BACKEND_H_
5 #include <msp/core/noncopyable.h>
10 class OpenGLPipelineState: public NonCopyable
12 friend class OpenGLCommands;
15 static const OpenGLPipelineState *last_applied;
16 static std::vector<int> bound_tex_targets;
17 static std::vector<char> bound_uniform_blocks;
18 static unsigned restart_index;
19 static unsigned n_clip_distances;
21 OpenGLPipelineState();
22 ~OpenGLPipelineState();
26 void apply(unsigned) const;
31 using PipelineStateBackend = OpenGLPipelineState;