Vuo 2.4.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VuoIsfModuleCompiler Class Reference

Description

Responsible for compiling node classes implemented in ISF (image generators/filters and object renderers/filters).

Definition at line 17 of file VuoIsfModuleCompiler.hh.

Public Member Functions

VuoModuleCompilerResults compile (dispatch_queue_t llvmQueue, VuoCompilerIssues *issues)
 Compiles the shader to LLVM bitcode that can be loaded as a Vuo node class.
 
void overrideSourceCode (const string &sourceCode, const string &sourcePath)
 Overrides the fragment shader, using sourceCode instead of the file contents.
 
- Public Member Functions inherited from VuoModuleCompiler
virtual string generateHeader (VuoCompilerIssues *issues)
 Throws an exception.
 

Additional Inherited Members

- Static Public Member Functions inherited from VuoModuleCompiler
static VuoModuleCompilernewModuleCompiler (const string &type, const string &moduleKey, const string &sourcePath, const VuoModuleCompilerSettings &settings, std::function< VuoCompilerType *(const string &)> getVuoType)
 If a VuoModuleCompiler subclass that is able to handle type and sourcePath is registered, creates an instance of that subclass.
 
- Protected Types inherited from VuoModuleCompiler
typedef VuoModuleCompiler *(* Factory) (const string &moduleKey, const string &sourcePath, const VuoModuleCompilerSettings &settings)
 A method that creates an instance of a subclass of VuoModuleCompiler.
 
- Protected Member Functions inherited from VuoModuleCompiler
 VuoModuleCompiler (const string &moduleKey, const string &sourcePath, const VuoModuleCompilerSettings &settings)
 Constructor to be called by derived classes.
 
VuoCompilerTypelookUpVuoType (const string &typeName)
 Adds the VuoCompilerType with the given name to vuoTypes.
 
- Static Protected Member Functions inherited from VuoModuleCompiler
static void registerModuleCompiler (string type, Factory factory)
 Registers a method that creates an instance of a subclass of VuoModuleCompiler.
 
- Protected Attributes inherited from VuoModuleCompiler
string moduleKey
 The module key of the module to compile.
 
string sourcePath
 The path of the primary source file to compile.
 
VuoModuleCompilerSettings settings
 Settings to use when compiling the module (specific to the type of module compiler).
 
map< string, VuoCompilerType * > vuoTypes
 Cached results of lookUpVuoType(), stored so they can be used on llvmQueue.
 

Member Function Documentation

◆ compile()

VuoModuleCompilerResults VuoIsfModuleCompiler::compile ( dispatch_queue_t  llvmQueue,
VuoCompilerIssues issues 
)
virtual

Compiles the shader to LLVM bitcode that can be loaded as a Vuo node class.

Implements VuoModuleCompiler.

Definition at line 60 of file VuoIsfModuleCompiler.cc.

◆ overrideSourceCode()

void VuoIsfModuleCompiler::overrideSourceCode ( const string &  sourceCode,
const string &  sourcePath 
)
virtual

Overrides the fragment shader, using sourceCode instead of the file contents.

Implements VuoModuleCompiler.

Definition at line 52 of file VuoIsfModuleCompiler.cc.


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