Synced
RenderShaderVariant.FromMaterial
Section titled “RenderShaderVariant.FromMaterial”
- Resolves the deterministic variant selected by a material.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public static InnoEngine.Rendering.RenderShaderVariant InnoEngine.Rendering.RenderShaderVariant.FromMaterial(InnoEngine.Rendering.MaterialAsset material)Parameters
Section titled “Parameters”Parameter material: The material whose declared keyword options are evaluated.
Returns
Section titled “Returns”The canonical variant shared by authoring compilation and runtime lookup.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when the material has no shader definition or selects an unknown or conflicting option.