Click or drag to resize

TextureFromFile Method

Creates a new texture from a file loaded in memory.

Namespace: Internal.SharpBgfx
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static Texture FromFile(
	MemoryBlock memory,
	TextureFlags flags = TextureFlags.None,
	int skipMips = 0
)

Parameters

memory  MemoryBlock
The content of the file.
flags  TextureFlags  (Optional)
Flags that control texture behavior.
skipMips  Int32  (Optional)
A number of top level mips to skip when parsing texture data.

Return Value

Texture
The newly created texture.
Remarks
This function supports textures in the following container formats: - DDS - KTX - PVR
See Also