Synced
RenderShaderArtifact.Constructor
Section titled “RenderShaderArtifact.Constructor”
- Creates a complete deployed shader artifact.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets
Declaration
Section titled “Declaration”public Inno.Rendering.Assets.RenderShaderArtifact.RenderShaderArtifact(string shaderName, string targetKey, Inno.Rendering.Assets.RenderShaderVariant variant, Inno.Rendering.ShaderInterface shaderInterface, System.Collections.Generic.IReadOnlyList<Inno.Rendering.Assets.RenderShaderPassArtifact> passes, System.ReadOnlySpan<byte> definitionData)Parameters
Section titled “Parameters”Parameter shaderName: The stable shader name expected by the runtime asset definition.
Parameter targetKey: The target compiler profile and policy identity.
Parameter variant: The canonical static keyword selection.
Parameter shaderInterface: The complete validated shader resource binding contract.
Parameter passes: Every source-free pass available to the runtime shader definition.
Parameter definitionData: Native-serialized material, keyword, technique and pass contract captured with these programs; contains stable asset references only.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when a required identity is empty, no pass exists, or pass names are duplicated.