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

API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime

public static InnoEngine.Rendering.RenderShaderVariant InnoEngine.Rendering.RenderShaderVariant.FromMaterial(InnoEngine.Rendering.MaterialAsset material, InnoEngine.Rendering.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.