Synced
ShaderSourceFunction.Constructor
Section titled “ShaderSourceFunction.Constructor”
- Captures a source function declaration without retaining parser or provider objects.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public Inno.Rendering.Shaders.ShaderSourceFunction.ShaderSourceFunction(string name, Inno.Rendering.Shaders.ShaderSourceType returnType, System.Collections.Generic.IEnumerable<Inno.Rendering.Shaders.ShaderSourceParameter> parameters, Inno.Rendering.Shaders.ShaderSourcePosition location)Parameters
Section titled “Parameters”Parameter name: Implementation function name selected by import settings.
Parameter returnType: Canonical result type; void has no result port.
Parameter parameters: Unique named parameters in call order.
Parameter location: Original declaration location.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The name is reserved or parameters have duplicate names.