Blender V5.0
blender::gpu::GLSource Struct Reference

#include <gl_shader.hh>

Public Member Functions

 GLSource ()=default
Sources
 GLSource (StringRefNull other_source)

Public Attributes

std::string source
std::optional< StringRefNullsource_ref

Detailed Description

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.

Constructor & Destructor Documentation

◆ GLSource() [1/2]

blender::gpu::GLSource::GLSource ( )
default

◆ GLSource() [2/2]

GLSource::GLSource ( StringRefNull other_source)

Member Data Documentation

◆ source

std::string blender::gpu::GLSource::source

◆ source_ref

std::optional<StringRefNull> blender::gpu::GLSource::source_ref

The documentation for this struct was generated from the following files: