FnUsdAbstractionLib 0.6.0
|
#include <ShaderSource.h>
Public Member Functions | |
virtual const Token & | sourceType () const =0 |
Returns the source target type of the generator. | |
virtual MaterialSource * | createMaterialSourceGenerator (const ShaderDescGroup &shaderGroup) const =0 |
Helper interface to define material source code for different targets. Primarily use case is for creating custom glslfx runtime code.
|
pure virtual |
Create (allocate) and return the MaterialSource generator to use when creating custom shader code for this generator's source type. Calling code takes ownership of returned allocation and typically will destroy it after the MaterialSource's emitSourceCode() method has been run.
©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |