Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

IRenderResourceService.TryResolveMaterialArtifact

Section titled “IRenderResourceService.TryResolveMaterialArtifact”
  • Resolves an explicitly compiled candidate in a caller-owned publication scope, without publishing it as an asset.

API: engine
Project: Inno.Rendering.Runtime

bool Inno.Rendering.Runtime.IRenderResourceService.TryResolveMaterialArtifact(Inno.Rendering.Runtime.RenderPersistentResourceId scope, Inno.Rendering.Assets.RenderShaderArtifact artifact, Inno.Rendering.Assets.MaterialAsset material, Inno.Rendering.Assets.ShaderContractId contractId, Inno.Rendering.Assets.ShaderPassRoleId passRoleId, Inno.Rendering.ShaderProgramKind programKind, Inno.Rendering.RenderVertexLayout? vertexLayout, Inno.Rendering.Assets.MaterialPropertyBlock? overrides, Inno.Core.Diagnostics.IDiagnosticReporter diagnostics, out Inno.Rendering.Runtime.RenderMaterialPass? materialPass)

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.

True when the isolated publication can satisfy this request; failure never changes canonical programs.

Exception T:System.InvalidOperationException: No artifact decoder is configured, or resource retirement cannot complete.