Creates a new texture from a file loaded in memory.
Namespace: Internal.SharpBgfxAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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
TextureThe newly created texture.
Remarks
This function supports textures in the following container formats:
- DDS
- KTX
- PVR
See Also