Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Resolves the deterministic variant selected by a material.

API: engine
Project: Inno.Rendering.Assets

public static Inno.Rendering.Assets.RenderShaderVariant Inno.Rendering.Assets.RenderShaderVariant.FromMaterial(Inno.Rendering.Assets.MaterialAsset material)

Parameter material: The material whose declared keyword options are evaluated.

The canonical variant shared by authoring compilation and runtime lookup.

Exception T:System.InvalidOperationException: Thrown when the material has no shader definition or selects an unknown or conflicting option.