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. | |
![]() | |
virtual string | generateHeader (VuoCompilerIssues *issues) |
Throws an exception. | |
Additional Inherited Members | |
![]() | |
static VuoModuleCompiler * | newModuleCompiler (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. | |
![]() | |
typedef VuoModuleCompiler *(* | Factory) (const string &moduleKey, const string &sourcePath, const VuoModuleCompilerSettings &settings) |
A method that creates an instance of a subclass of VuoModuleCompiler. | |
![]() | |
VuoModuleCompiler (const string &moduleKey, const string &sourcePath, const VuoModuleCompilerSettings &settings) | |
Constructor to be called by derived classes. | |
VuoCompilerType * | lookUpVuoType (const string &typeName) |
Adds the VuoCompilerType with the given name to vuoTypes . | |
![]() | |
static void | registerModuleCompiler (string type, Factory factory) |
Registers a method that creates an instance of a subclass of 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 . | |
|
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.
|
virtual |
Overrides the fragment shader, using sourceCode instead of the file contents.
Implements VuoModuleCompiler.
Definition at line 52 of file VuoIsfModuleCompiler.cc.