Synced
IRenderTargetArtifactProvider.GetTextureArtifact
Section titled “IRenderTargetArtifactProvider.GetTextureArtifact”
- Resolves the portable KTX artifact for one imported runtime texture.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”Inno.Rendering.Runtime.RenderTargetArtifactStatus Inno.Rendering.Runtime.IRenderTargetArtifactProvider.GetTextureArtifact(Inno.Rendering.Assets.RenderTextureArtifactReference texture, out System.ReadOnlyMemory<byte> artifact)Parameters
Section titled “Parameters”Parameter texture: Stable reference to the imported texture slot.
Parameter artifact: Receives immutable KTX bytes when the artifact exists and is non-empty.
Returns
Section titled “Returns”The current artifact availability. F:Inno.Rendering.Runtime.RenderTargetArtifactStatus.Ready guarantees that artifact is non-empty.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when texture is invalid.