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

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

InnoEngine.Rendering.RenderTargetArtifactStatus InnoEngine.Rendering.IRenderResourceService.PrewarmMaterial(InnoEngine.Rendering.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.