Synced
IRenderResourceService.PrewarmMaterial
Section titled “IRenderResourceService.PrewarmMaterial”
- Queues all target shader work required by a material without blocking the render thread.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Runtime
Scope: Runtime
Declaration
Section titled “Declaration”InnoEngine.Rendering.RenderTargetArtifactStatus InnoEngine.Rendering.IRenderResourceService.PrewarmMaterial(InnoEngine.Rendering.MaterialAsset material)Parameters
Section titled “Parameters”Parameter material: Material whose selected static variant should be prepared.
Returns
Section titled “Returns”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.
Exceptions
Section titled “Exceptions”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.