1 #ifndef MSP_GL_PIPELINESTATE_BACKEND_H_
2 #define MSP_GL_PIPELINESTATE_BACKEND_H_
5 #include <msp/core/noncopyable.h>
12 class OpenGLPipelineState: public NonCopyable
14 friend class OpenGLCommands;
17 mutable Device *applied_to = 0;
18 mutable unsigned changes = 0;
20 OpenGLPipelineState() = default;
21 OpenGLPipelineState(OpenGLPipelineState &&) { }
22 ~OpenGLPipelineState();
24 static bool can_bind_tex_level(unsigned l) { return l==0; }
31 using PipelineStateBackend = OpenGLPipelineState;