Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ShaderComponent Class Referenceabstract
+ Inheritance diagram for inviwo::ShaderComponent:

Classes

struct  Segment
 

Public Member Functions

virtual std::string_view getName () const =0
 The name of the ShaderComponent. Will show up as the source of the line in the shaderwidget when the file is preprocessed and in error messages.
 
virtual void initializeResources (Shader &shader)
 Called from Processor::initializeResources Override to set defines in the shader. This function will be called before the shader is compiled.
 
virtual void process (Shader &shader, TextureUnitContainer &container)
 Called from Processor::process Override to set uniforms, bind textures etc.
 
virtual std::vector< std::tuple< Inport *, std::string > > getInports ()
 Return all Inports and their port groups This gets called in Processor::registerComponents which will add them to the processor.
 
virtual std::vector< Property * > getProperties ()
 Return all Properties This gets called in Processor::registerComponents which will add them to the processor.
 
virtual std::vector< SegmentgetSegments ()
 Return all Segments to be injected into the shader. This gets called in VolumeRaycasterBase::initializeResources after the call to RaycasterComponent::initializeResources.
 

Member Function Documentation

◆ getInports()

virtual std::vector< std::tuple< Inport *, std::string > > inviwo::ShaderComponent::getInports ( )
inlinevirtual

Return all Inports and their port groups This gets called in Processor::registerComponents which will add them to the processor.

Reimplemented in inviwo::AtlasComponent, inviwo::BackgroundComponent, inviwo::EntryExitComponent, inviwo::LightVolumeComponent, inviwo::TexturedIsoSurfaceComponent, and inviwo::VolumeComponent.

◆ getName()

◆ getProperties()

◆ getSegments()

◆ initializeResources()

virtual void inviwo::ShaderComponent::initializeResources ( Shader & shader)
virtual

◆ process()


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