Synced
RenderShaderVariant.FromMaterial
Section titled “RenderShaderVariant.FromMaterial”
- Resolves the deterministic variant selected by a material.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets
Declaration
Section titled “Declaration”public static Inno.Rendering.Assets.RenderShaderVariant Inno.Rendering.Assets.RenderShaderVariant.FromMaterial(Inno.Rendering.Assets.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.