Synced
IRenderDevice.CreateTexture
Section titled “IRenderDevice.CreateTexture”
- Creates a persistent sampled texture from a validated portable container.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering
Declaration
Section titled “Declaration”Inno.Rendering.PersistentTextureHandle Inno.Rendering.IRenderDevice.CreateTexture(Inno.Rendering.RenderTextureContainer container, System.ReadOnlySpan<byte> data, bool sRgb, string name)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”An opaque device-generation handle.
Exceptions
Section titled “Exceptions”Exception T:System.NotSupportedException: Thrown when the device cannot consume encoded containers.