Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

EditorRenderTargetArtifactProvider.GetTextureArtifact

Section titled “EditorRenderTargetArtifactProvider.GetTextureArtifact”
  • Returns a matching compiled texture when available and schedules a replacement when source state changed.

API: engine
Project: Inno.Editor.Rendering

public Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Editor.Rendering.EditorRenderTargetArtifactProvider.GetTextureArtifact(Inno.Rendering.Assets.RenderTextureArtifactReference texture, out System.ReadOnlyMemory<byte> artifact)

Parameter texture: The imported texture asset whose authoring source is compiled.

Parameter artifact: Receives the current candidate or the last-good KTX artifact while a replacement is compiling.

F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when a current or last-good KTX artifact is usable; otherwise, the exact pending or failed state of the first candidate.

Exception T:System.ObjectDisposedException: Thrown when this provider has been disposed.

Exception T:System.ArgumentNullException: Thrown when texture is null.