diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-21 15:14:56 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-21 15:16:42 +0300 |
commit | 3a6e981bcd579b3fda039ff33f95d4baacc96465 (patch) | |
tree | 78350c493d69fb9aef14096e9bd960a66d730390 /source/blender/gpu/opengl | |
parent | 220fbdf59341f620c06959280e2145132003c5df (diff) |
Cleanup: GPU: Update classes comments
This should avoid confusion about what is a class and what is an opaque
pointer.
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r-- | source/blender/gpu/opengl/gl_drawlist.hh | 6 | ||||
-rw-r--r-- | source/blender/gpu/opengl/gl_shader.hh | 6 | ||||
-rw-r--r-- | source/blender/gpu/opengl/gl_shader_interface.hh | 3 | ||||
-rw-r--r-- | source/blender/gpu/opengl/gl_state.hh | 4 | ||||
-rw-r--r-- | source/blender/gpu/opengl/gl_uniform_buffer.hh | 3 |
5 files changed, 19 insertions, 3 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.hh b/source/blender/gpu/opengl/gl_drawlist.hh index 4f085149388..b690b8f8a98 100644 --- a/source/blender/gpu/opengl/gl_drawlist.hh +++ b/source/blender/gpu/opengl/gl_drawlist.hh @@ -19,6 +19,9 @@ /** \file * \ingroup gpu + * + * Implementation of Multi Draw Indirect using OpenGL. + * Fallback if the needed extensions are not supported. */ #pragma once @@ -37,6 +40,9 @@ namespace blender { namespace gpu { +/** + * Implementation of Multi Draw Indirect using OpenGL. + **/ class GLDrawList : public DrawList { public: GLDrawList(int length); diff --git a/source/blender/gpu/opengl/gl_shader.hh b/source/blender/gpu/opengl/gl_shader.hh index b432a04abaa..37119b8b093 100644 --- a/source/blender/gpu/opengl/gl_shader.hh +++ b/source/blender/gpu/opengl/gl_shader.hh @@ -19,9 +19,6 @@ /** \file * \ingroup gpu - * - * GPUDrawList is an API to do lots of similar draw-calls very fast using - * multi-draw-indirect. There is a fallback if the feature is not supported. */ #pragma once @@ -35,6 +32,9 @@ namespace blender { namespace gpu { +/** + * Implementation of shader compilation and uniforms handling using OpenGL. + **/ class GLShader : public Shader { private: /** Handle for full program (links shader stages below). */ diff --git a/source/blender/gpu/opengl/gl_shader_interface.hh b/source/blender/gpu/opengl/gl_shader_interface.hh index fdf9512ef79..39f4790c282 100644 --- a/source/blender/gpu/opengl/gl_shader_interface.hh +++ b/source/blender/gpu/opengl/gl_shader_interface.hh @@ -40,6 +40,9 @@ namespace blender::gpu { class GLVaoCache; +/** + * Implementation of Shader interface using OpenGL. + **/ class GLShaderInterface : public ShaderInterface { private: /** Reference to VaoCaches using this interface */ diff --git a/source/blender/gpu/opengl/gl_state.hh b/source/blender/gpu/opengl/gl_state.hh index b05fcc5d044..bcbf6c06c61 100644 --- a/source/blender/gpu/opengl/gl_state.hh +++ b/source/blender/gpu/opengl/gl_state.hh @@ -31,6 +31,10 @@ namespace blender { namespace gpu { +/** + * State manager keeping track of the draw state and applying it before drawing. + * Opengl Implementation. + **/ class GLStateManager : public GPUStateManager { private: /** Current state of the GL implementation. Avoids resetting the whole state for every change. */ diff --git a/source/blender/gpu/opengl/gl_uniform_buffer.hh b/source/blender/gpu/opengl/gl_uniform_buffer.hh index 9b904cb34ee..b71356c4121 100644 --- a/source/blender/gpu/opengl/gl_uniform_buffer.hh +++ b/source/blender/gpu/opengl/gl_uniform_buffer.hh @@ -32,6 +32,9 @@ namespace blender { namespace gpu { +/** + * Implementation of Uniform Buffers using OpenGL. + **/ class GLUniformBuf : public UniformBuf { private: int slot_ = -1; |