GetTextureFormat

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns format of a .dds texture file using its filepath relative to Data\Textures folder. Returns values 1 to 5 corresponding to DXT1 to DXT5.

Syntax

[help]
(int) GetTextureFormat path:string

Example

set iFormat to GetTextureFormat "myTexture.dds" 

Notes

  • Since version 5.06, the function supports textures packed into BSA archives as well as loose files.

See Also