GL/Program: Make moveable
This commit is contained in:
@ -9,6 +9,8 @@ class Program
|
||||
{
|
||||
public:
|
||||
Program();
|
||||
Program(const Program&) = delete;
|
||||
Program(Program&& prog);
|
||||
~Program();
|
||||
|
||||
static GLuint CompileShader(GLenum type, const std::string_view source);
|
||||
@ -78,6 +80,9 @@ public:
|
||||
|
||||
void BindUniformBlock(const char* name, u32 index);
|
||||
|
||||
Program& operator=(const Program&) = delete;
|
||||
Program& operator=(Program&& prog);
|
||||
|
||||
private:
|
||||
static u32 s_last_program_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user