From efc97b3919ea4fd46b9d2e931ca3fea27e7ea31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 11 Aug 2020 01:31:40 +0200 Subject: GPUBatch: GL backend isolation This changes the drawing paradigm a bit. The VAO configuration is done JIT-style and depends on context active shader. This is to allow more flexibility for implementations to do optimization at lower level. The vao cache is now its own class to isolate the concept. It is this class that is reference by the GLContext for ownership of the containing VAO ids. --- source/blender/gpu/intern/gpu_context.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source/blender/gpu/intern/gpu_context.cc') diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc index 66514deefbc..e04631910c1 100644 --- a/source/blender/gpu/intern/gpu_context.cc +++ b/source/blender/gpu/intern/gpu_context.cc @@ -188,18 +188,6 @@ void GPU_tex_free(GLuint tex_id) * which are not shared across contexts. So we need to keep track of * ownership. */ -void gpu_context_add_batch(GPUContext *ctx, GPUBatch *batch) -{ - BLI_assert(ctx); - static_cast(ctx)->batch_register(batch); -} - -void gpu_context_remove_batch(GPUContext *ctx, GPUBatch *batch) -{ - BLI_assert(ctx); - static_cast(ctx)->batch_unregister(batch); -} - void gpu_context_add_framebuffer(GPUContext *ctx, GPUFrameBuffer *fb) { #ifdef DEBUG -- cgit v1.2.3