Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

ContentRenderTargetArtifactProvider.GetTextureArtifact

Section titled “ContentRenderTargetArtifactProvider.GetTextureArtifact”
  • Loads one packaged portable texture artifact when it exists.

API: engine
Project: Inno.Rendering.Runtime

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

Parameter texture: The imported texture description.

Parameter artifact: Receives immutable KTX bytes when present.

F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when the deployed artifact exists; otherwise, F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Unavailable.

Exception T:System.IO.InvalidDataException: Thrown when a deployed texture artifact is empty.

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