Synced
MaterialPassResolver.Resolve
Section titled “MaterialPassResolver.Resolve”
- Resolves a role against an exact published shader contract rather than a possibly newer authoring asset.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The matching technique and pass, or null when this publication has no compatible mapping.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: A required contract or role identity is invalid.