|
Blender V5.0
|
#include <gl_shader.hh>
Public Member Functions | |
| GLSource ()=default | |
Sources | |
| GLSource (StringRefNull other_source) | |
Public Attributes | |
| std::string | source |
| std::optional< StringRefNull > | 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 38 of file gl_shader.hh.
|
default |
| GLSource::GLSource | ( | StringRefNull | other_source | ) |
Definition at line 1492 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 39 of file gl_shader.hh.
Referenced by GLSource(), blender::gpu::GLSources::sources_get(), and blender::gpu::GLSources::to_string().
| std::optional<StringRefNull> blender::gpu::GLSource::source_ref |
Definition at line 40 of file gl_shader.hh.
Referenced by GLSource(), blender::gpu::GLSources::sources_get(), and blender::gpu::GLSources::to_string().