Vuo  2.0.0
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

Module * compile (std::function< VuoCompilerType *(const string &)> getVuoType, dispatch_queue_t llvmQueue, VuoCompilerIssues *issues)
 Compiles the shader to LLVM bitcode that can be loaded as a Vuo node class. More...
 
void overrideSourceCode (const string &sourceCode, VuoFileUtilities::File *sourceFile)
 Overrides the fragment shader, using sourceCode instead of the file contents. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from VuoModuleCompiler
static VuoModuleCompilernewModuleCompiler (string type, const string &moduleKey, VuoFileUtilities::File *sourceFile)
 Creates an instance of a subclass of VuoModuleCompiler. More...
 
- Protected Types inherited from VuoModuleCompiler
typedef VuoModuleCompiler *(* Factory) (const string &moduleKey, VuoFileUtilities::File *sourceFile)
 A method that creates an instance of a subclass of VuoModuleCompiler. More...
 
- 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. More...
 

Member Function Documentation

◆ compile()

Module * VuoIsfModuleCompiler::compile ( std::function< VuoCompilerType *(const string &)>  getVuoType,
dispatch_queue_t  llvmQueue,
VuoCompilerIssues issues 
)
virtual

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

If there are errors, they are reported in issues and the return value is null.

Implements VuoModuleCompiler.

Definition at line 57 of file VuoIsfModuleCompiler.cc.

◆ overrideSourceCode()

void VuoIsfModuleCompiler::overrideSourceCode ( const string &  sourceCode,
VuoFileUtilities::File sourceFile 
)
virtual

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

Implements VuoModuleCompiler.

Definition at line 46 of file VuoIsfModuleCompiler.cc.


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