|
Blender V4.3
|
#include <gl_shader.hh>
Public Member Functions | |
| GLSource ()=default | |
Sources | |
| GLSource (const char *other_source) | |
Public Attributes | |
| std::string | source |
| const char * | source_ref |
Shaders that uses specialization constants must keep track of the sources in order to rebuild shader stages.
Some sources are shared and won't be copied. For example for dependencies. In this case we would only store the source_ref.
Other sources would be stored in the source attribute. source_ref would still be updated.
Definition at line 36 of file gl_shader.hh.
|
default |
| GLSource::GLSource | ( | const char * | other_source | ) |
Definition at line 1425 of file gl_shader.cc.
References blender::gpu::shader::gpu_shader_dependency_get_filename_from_source_string(), source, and source_ref.
| std::string blender::gpu::GLSource::source |
Definition at line 37 of file gl_shader.hh.
Referenced by GLSource().
| const char* blender::gpu::GLSource::source_ref |
Definition at line 38 of file gl_shader.hh.
Referenced by GLSource().