Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Resolves material keyword selections against an exact published shader contract.

API: engine
Project: Inno.Rendering.Assets

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

Parameter material: Material whose selected options are evaluated.

Parameter definition: Captured shader contract, which may be the last successful publication.

The canonical keyword selection for this publication.

Exception T:System.InvalidOperationException: A selected option is unknown or conflicts with another option.