diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_shader.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_shader.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_shader.hh b/source/blender/gpu/opengl/gl_shader.hh index 770bc29747e..57e33392d9f 100644 --- a/source/blender/gpu/opengl/gl_shader.hh +++ b/source/blender/gpu/opengl/gl_shader.hh @@ -53,13 +53,14 @@ class GLShader : public Shader { GLShader(const char *name); ~GLShader(); - /* Return true on success. */ + /** Return true on success. */ void vertex_shader_from_glsl(MutableSpan<const char *> sources) override; void geometry_shader_from_glsl(MutableSpan<const char *> sources) override; void fragment_shader_from_glsl(MutableSpan<const char *> sources) override; void compute_shader_from_glsl(MutableSpan<const char *> sources) override; bool finalize(void) override; + /** Should be called before linking. */ void transform_feedback_names_set(Span<const char *> name_list, const eGPUShaderTFBType geom_type) override; bool transform_feedback_enable(GPUVertBuf *buf) override; @@ -73,12 +74,13 @@ class GLShader : public Shader { void vertformat_from_shader(GPUVertFormat *format) const override; - /* DEPRECATED: Kept only because of BGL API. */ + /** DEPRECATED: Kept only because of BGL API. */ int program_handle_get(void) const override; private: char *glsl_patch_get(GLenum gl_stage); + /** Create, compile and attach the shader stage to the shader program. */ GLuint create_shader_stage(GLenum gl_stage, MutableSpan<const char *> sources); MEM_CXX_CLASS_ALLOC_FUNCS("GLShader"); |