Blender V4.3
blender::gpu::GLSource Struct Reference

#include <gl_shader.hh>

Public Member Functions

 GLSource ()=default
 
Sources
 GLSource (const char *other_source)
 

Public Attributes

std::string source
 
const char * source_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 36 of file gl_shader.hh.

Constructor & Destructor Documentation

◆ GLSource() [1/2]

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

◆ GLSource() [2/2]

GLSource::GLSource ( const char * other_source)

Member Data Documentation

◆ source

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

Definition at line 37 of file gl_shader.hh.

Referenced by GLSource().

◆ source_ref

const char* blender::gpu::GLSource::source_ref

Definition at line 38 of file gl_shader.hh.

Referenced by GLSource().


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