GPUShader: GL backend isolation

This commit is contained in:
2020-08-14 15:20:35 +02:00
parent df28d2c27e
commit 216d78687d
20 changed files with 673 additions and 581 deletions

View File

@@ -30,6 +30,7 @@
#include "gl_batch.hh"
#include "gl_context.hh"
#include "gl_drawlist.hh"
#include "gl_shader.hh"
namespace blender {
namespace gpu {
@@ -54,6 +55,11 @@ class GLBackend : public GPUBackend {
return new GLDrawList(list_length);
};
Shader *shader_alloc(const char *name)
{
return new GLShader(name);
};
/* TODO remove */
void buf_free(GLuint buf_id);
void tex_free(GLuint tex_id);