18#include <ShaderPipeline/ShaderPipelineInclude.h>
22class ShaderPipelineInclude;
28 _containsDefines =
false;
38 void setValue(
const std::string& value) { _value = value; }
42 const std::string&
getValue()
const {
return _value; }
49 bool _containsDefines;
77 const std::vector<const ShaderPipelineInclude*>&
getIncludes() {
return _includes; }
89 const std::string& name,
91 const std::string& body);
96 std::vector<const ShaderPipelineInclude*> _includes;
Container class for includes.
static const std::string NamePrefix
Variables for names of the built-in includes.
const std::vector< const ShaderPipelineInclude * > & getIncludes()
Access to the includes stored in this container.
~IncludeContainer()
Destructor. Clears the container.
static const std::string FetchOverlayCubic
void clear()
Deletes all contained includes.
IncludeContainer()
Empty constructor.
void setup()
Initialize the container.
The helper class for the include which is added to the GVR.
SoView2DShaderCustomInclude()
bool containsDefines() const override
Defines are places on the top of the shader.
const std::string & getValue() const
void setValue(const std::string &value)
void setContainsDefines(bool containsDefines)
void appendDefinition(std::stringstream &str) const override
~SoView2DShaderCustomInclude() override
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
All includes implemented by the GVR itself shall be included in this namespace.