Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ShaderSegment Struct Reference

#include <shadersegment.h>

Classes

struct  Placeholder
 

Public Attributes

Placeholder placeholder
 The placeholder that will be replaced.
 
std::string name
 
std::string snippet
 The replacement code.
 
size_t priority = 1000
 

Detailed Description

Hold a small text snippet to be inserted into shader code

Member Data Documentation

◆ name

std::string inviwo::ShaderSegment::name

A name of the snippet, used by the LineNumberResolver and to identify the segment in the ShaderObject

◆ priority

size_t inviwo::ShaderSegment::priority = 1000

If there are multiple replacement with the same Placeholder, they will be sorted using priority, lower goes first.


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