Synced
ContentRenderTargetArtifactProvider.GetTextureArtifact
Section titled “ContentRenderTargetArtifactProvider.GetTextureArtifact”
- Loads one packaged portable texture artifact when it exists.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”public Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Rendering.Runtime.ContentRenderTargetArtifactProvider.GetTextureArtifact(Inno.Rendering.Assets.RenderTextureArtifactReference texture, out System.ReadOnlyMemory<byte> artifact)Parameters
Section titled “Parameters”Parameter texture: The imported texture description.
Parameter artifact: Receives immutable KTX bytes when present.
Returns
Section titled “Returns”F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready when the deployed artifact exists; otherwise, F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Unavailable.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: Thrown when a deployed texture artifact is empty.
Exception T:System.ArgumentNullException: Thrown when texture is null.