35 return std::make_shared<WgslShaderGenerator>(typeSystem ? typeSystem :
TypeSystem::create());
40 const string& getLightDataTypevarString()
const override {
return LIGHTDATA_TYPEVAR_STRING; }
42 void emitFunctionDefinitionParameter(
const ShaderPort* shaderPort,
bool isOutput, GenContext& context, ShaderStage& stage)
const override;
47 static const string LIGHTDATA_TYPEVAR_STRING;
Context classes for shader generation.
Vulkan GLSL resource binding context for WGSL.
A context class for shader generation.
Definition GenContext.h:30
A shader stage, containing the state and resulting source code for the stage.
Definition ShaderStage.h:141
void emitInput(const ShaderInput *input, GenContext &context, ShaderStage &stage) const override
Emit the connected variable name for an input, or constant value if the port is not connected.