Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-08 00:52:55 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-08 01:02:04 +0300
commit5c2ac8520e070db2085b7d95d9d232b567edb247 (patch)
treec91d89789e0e390937c84807dd73cf1637cada70 /source/blender/gpu/opengl/gl_backend.hh
parentd4fd363d05943eaf021ef3bff8756cdf96241c0e (diff)
GPUQuery: GL Backend isolation
This is part of the Vulkan task T68990. This introduce a new GLQueryPool for managing queries in an implementation agnostic manner. This modify the GPU selection query to use this new object. This also make use of blender::Vector for better code quality. No real functionnal change.
Diffstat (limited to 'source/blender/gpu/opengl/gl_backend.hh')
-rw-r--r--source/blender/gpu/opengl/gl_backend.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.hh b/source/blender/gpu/opengl/gl_backend.hh
index 0c759d2cd62..94ac1692108 100644
--- a/source/blender/gpu/opengl/gl_backend.hh
+++ b/source/blender/gpu/opengl/gl_backend.hh
@@ -32,6 +32,7 @@
#include "gl_drawlist.hh"
#include "gl_framebuffer.hh"
#include "gl_index_buffer.hh"
+#include "gl_query.hh"
#include "gl_shader.hh"
#include "gl_texture.hh"
#include "gl_uniform_buffer.hh"
@@ -95,6 +96,11 @@ class GLBackend : public GPUBackend {
return new GLIndexBuf();
};
+ QueryPool *querypool_alloc(void) override
+ {
+ return new GLQueryPool();
+ };
+
Shader *shader_alloc(const char *name) override
{
return new GLShader(name);