Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Resolves a role against an exact published shader contract rather than a possibly newer authoring asset.

API: engine
Project: Inno.Rendering.Assets

public static Inno.Rendering.Assets.MaterialPassResolution? Inno.Rendering.Assets.MaterialPassResolver.Resolve(Inno.Rendering.Assets.ShaderDefinition definition, Inno.Rendering.Assets.ShaderTechniqueId techniqueId, Inno.Rendering.Assets.ShaderContractId contractId, Inno.Rendering.Assets.ShaderPassRoleId passRoleId, Inno.Rendering.GraphicsCapabilities capabilities)

Parameter definition: The immutable publication’s detached material contract.

Parameter techniqueId: Explicit material technique, or an invalid ID to select the first compatible technique.

Parameter contractId: Open rendering contract required by the caller.

Parameter passRoleId: Open pass role required by the caller.

Parameter capabilities: Current target capability snapshot.

The matching technique and pass, or null when this publication has no compatible mapping.

Exception T:System.ArgumentException: A required contract or role identity is invalid.