|
FnUsdAbstractionLib 15.0.8
|
Helper interface to define shader sources for different targets. More...
#include <ShaderSchema.h>
Public Member Functions | |
| virtual const Token & | sourceType () const =0 |
| Returns the type source target type. | |
| virtual void | startFunction ()=0 |
| Starts a shader function with the given set of inputs. | |
| virtual void | emitLine (const std::string &line)=0 |
| Emits the shader line source. | |
| virtual std::string | input (const std::string &name)=0 |
| virtual void | output (const std::string &name, const std::string &expression)=0 |
| Declares and defines a shader output to be equal to the given expression. | |
| virtual void | endFunction ()=0 |
| Ends the shader function. | |
| virtual std::string | sampleTexture (const std::string &inputName, const std::string &texCoord)=0 |
| Returns code that allows raw sampling of a texture at the given texture coordinates. | |
Helper interface to define shader sources for different targets.
| ©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |