Synced
EditorRenderTargetArtifactProvider.GetTextureArtifact
Section titled “EditorRenderTargetArtifactProvider.GetTextureArtifact”
- Returns a matching compiled texture when available and schedules a replacement when source state changed.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Rendering
Declaration
Section titled “Declaration”public Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Editor.Rendering.EditorRenderTargetArtifactProvider.GetTextureArtifact(Inno.Rendering.Assets.RenderTextureArtifactReference texture, out System.ReadOnlyMemory<byte> artifact)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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.
Exceptions
Section titled “Exceptions”Exception T:System.ObjectDisposedException: Thrown when this provider has been disposed.
Exception T:System.ArgumentNullException: Thrown when texture is null.