|
|
| VkShaderGenerator (TypeSystemPtr typeSystem) |
| | Constructor.
|
| |
|
const string & | getTarget () const override |
| | Return a unique identifier for the target this generator is for.
|
| |
| const string & | getVersion () const override |
| | Return the version string for the GLSL version this generator is for.
|
| |
|
string | getVertexDataPrefix (const VariableBlock &vertexData) const override |
| |
| void | emitDirectives (GenContext &context, ShaderStage &stage) const override |
| |
| void | emitInputs (GenContext &context, ShaderStage &stage) const override |
| |
| void | emitOutputs (GenContext &context, ShaderStage &stage) const override |
| |
|
| GlslShaderGenerator (TypeSystemPtr typeSystem) |
| | Constructor.
|
| |
|
ShaderPtr | generate (const string &name, ElementPtr element, GenContext &context) const override |
| | Generate a shader starting from the given element, translating the element and all dependencies upstream into shader code.
|
| |
|
const string & | getTarget () const override |
| | Return a unique identifier for the target this generator is for.
|
| |
|
void | emitVariableDeclaration (const ShaderPort *variable, const string &qualifier, GenContext &context, ShaderStage &stage, bool assignValue=true) const override |
| | Emit a shader variable.
|
| |
|
string | getVertexDataPrefix (const VariableBlock &vertexData) const override |
| | Determine the prefix of vertex data variables.
|
| |
|
| HwResourceBindingContextPtr | getResourceBindingContext (GenContext &) const override |
| |
|
virtual void | emitVertexStage (const ShaderGraph &graph, GenContext &context, ShaderStage &stage) const |
| |
|
virtual void | emitPixelStage (const ShaderGraph &graph, GenContext &context, ShaderStage &stage) const |
| |
|
virtual void | emitConstants (GenContext &context, ShaderStage &stage) const |
| |
|
virtual void | emitUniforms (GenContext &context, ShaderStage &stage) const |
| |
|
virtual void | emitLightData (GenContext &context, ShaderStage &stage) const |
| |
|
virtual void | emitSpecularEnvironment (GenContext &context, ShaderStage &stage) const |
| | Emit specular environment lookup code.
|
| |
|
virtual void | emitTransmissionRender (GenContext &context, ShaderStage &stage) const |
| | Emit transmission rendering code.
|
| |
|
virtual void | emitLightFunctionDefinitions (const ShaderGraph &graph, GenContext &context, ShaderStage &stage) const |
| | Emit function definitions for lighting code.
|
| |
A Vulkan GLSL shader generator.