Synced
RenderShaderVariant.FromMaterial
Section titled “RenderShaderVariant.FromMaterial”
- Resolves material keyword selections against an exact published shader contract.
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, InnoEngine.Rendering.ShaderDefinition definition)Parameters
Section titled “Parameters”Parameter material: Material whose selected options are evaluated.
Parameter definition: Captured shader contract, which may be the last successful publication.
Returns
Section titled “Returns”The canonical keyword selection for this publication.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: A selected option is unknown or conflicts with another option.