Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Queues all target shader work required by a material without blocking the render thread.

API: engine
Project: Inno.Rendering.Runtime

Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Rendering.Runtime.IRenderResourceService.PrewarmMaterial(Inno.Rendering.Assets.MaterialAsset material)

Parameter material: Material whose selected static variant should be prepared.

The exact target artifact state for this material variant: Ready includes a usable last-good artifact, Pending means compilation is ongoing, and Failed or Unavailable means no artifact can currently be used.

Exception T:System.ArgumentException: The material has no shader or declares an invalid static variant.

Exception T:System.InvalidOperationException: No target artifact provider is available for this runtime.