IRenderResourceService.TryResolveMaterialArtifact
Section titled “IRenderResourceService.TryResolveMaterialArtifact”
- Resolves an explicitly compiled candidate in a caller-owned publication scope, without publishing it as an asset.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Runtime
Scope: Runtime
Declaration
Section titled “Declaration”bool InnoEngine.Rendering.IRenderResourceService.TryResolveMaterialArtifact(InnoEngine.Rendering.RenderPersistentResourceId scope, InnoEngine.Rendering.RenderShaderArtifact artifact, InnoEngine.Rendering.MaterialAsset material, InnoEngine.Rendering.ShaderContractId contractId, InnoEngine.Rendering.ShaderPassRoleId passRoleId, InnoEngine.Rendering.ShaderProgramKind programKind, InnoEngine.Rendering.RenderVertexLayout? vertexLayout, InnoEngine.Rendering.MaterialPropertyBlock? overrides, InnoEngine.Diagnostics.IDiagnosticReporter diagnostics, out InnoEngine.Rendering.RenderMaterialPass? materialPass)Parameters
Section titled “Parameters”Parameter scope: Non-empty resource identity for this isolated consumer; release it when the consumer closes.
Parameter artifact: Complete immutable candidate built for the active device and exact Material variant.
Parameter material: Invocation-local values and a persistent Shader reference; neither asset is changed or retained.
Parameter contractId: Required provider-owned Shader contract.
Parameter passRoleId: Required role within the selected Technique.
Parameter programKind: Required graphics or compute program kind.
Parameter vertexLayout: Graphics layout, or null for procedural or compute work.
Parameter overrides: Optional invocation-local Material values.
Parameter diagnostics: Consumer-owned diagnostic reporter, not retained or forwarded to canonical asset diagnostics.
Parameter materialPass: Receives the current or complete last-good scoped pass.
Returns
Section titled “Returns”True when the isolated publication can satisfy this request; failure never changes canonical programs.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: No artifact decoder is configured, or resource retirement cannot complete.