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

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

public static InnoEngine.Rendering.MaterialPassResolution? InnoEngine.Rendering.MaterialPassResolver.Resolve(InnoEngine.Rendering.ShaderDefinition definition, InnoEngine.Rendering.ShaderTechniqueId techniqueId, InnoEngine.Rendering.ShaderContractId contractId, InnoEngine.Rendering.ShaderPassRoleId passRoleId, InnoEngine.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.