Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a persistent sampled texture from a validated portable container.

API: engine
Project: Inno.Rendering

Inno.Rendering.PersistentTextureHandle Inno.Rendering.IRenderDevice.CreateTexture(Inno.Rendering.RenderTextureContainer container, System.ReadOnlySpan<byte> data, bool sRgb, string name)

Parameter container: Portable texture container kind.

Parameter data: Complete encoded container bytes.

Parameter sRgb: Whether sampling decodes the stored color from sRGB.

Parameter name: Debug and diagnostic name.

An opaque device-generation handle.

Exception T:System.NotSupportedException: Thrown when the device cannot consume encoded containers.