vtf-js
Version:
A javascript IO library for the Valve Texture Format.
85 lines (84 loc) • 2.48 kB
TypeScript
export declare enum VFormats {
RGBA8888 = 0,
ABGR8888 = 1,
RGB888 = 2,
BGR888 = 3,
RGB565 = 4,
I8 = 5,
IA88 = 6,
P8 = 7,
A8 = 8,
RGB888_BLUESCREEN = 9,
BGR888_BLUESCREEN = 10,
ARGB8888 = 11,
BGRA8888 = 12,
DXT1 = 13,
DXT3 = 14,
DXT5 = 15,
BGRX8888 = 16,
BGR565 = 17,
BGRX5551 = 18,
BGRA4444 = 19,
DXT1_ONEBITALPHA = 20,
BGRA5551 = 21,
UV88 = 22,
UVWQ8888 = 23,
RGBA16161616F = 24,
RGBA16161616 = 25,
UVLX8888 = 26,
R32F = 27,
RGB323232F = 28,
RGBA32323232F = 29,
NV_NULL = 33,// 0 bpp
ATI2N = 34,// Red, Green BC5 compressed format - 8 bpp
ATI1N = 35,// Red BC4 compressed format - 4 bpp
R8 = 69,
BC7 = 70,
BC6H = 71
}
export declare enum VFlags {
PointSample = 1,
Trilinear = 2,
ClampS = 4,
ClampT = 8,
Anistrophic = 16,
HintDXT5 = 32,
SRGB = 64,// Originally internal to VTex as TEXTUREFLAGS_NOCOMPRESS.
DEPRECATED_NoCompress = 64,
Normal = 128,
NoMip = 256,
NoLOD = 512,
MinMip = 1024,
Procedural = 2048,
OneBitAlpha = 4096,// Automatically generated by VTex.
EightBitAlpha = 8192,// Automatically generated by VTex.
Envmap = 16384,
RenderTarget = 32768,
DepthRenderTarget = 65536,
NoDebugOverride = 131072,
SingleCopy = 262144,
UNUSED0 = 524288,// Originally internal to VTex as TEXTUREFLAGS_ONEOVERMIPLEVELINALPHA.
DEPRECATED_OneOverMipLevelInAlpha = 524288,
UNUSED1 = 1048576,// Originally internal to VTex as TEXTUREFLAGS_PREMULTCOLORBYONEOVERMIPLEVEL.
DEPRECATED_PreMultColorByOneOverMipLevel = 1048576,
UNUSED2 = 2097152,// Originally internal to VTex as TEXTUREFLAGS_NORMALTODUDV.
DEPRECATED_NormalToDuDv = 2097152,
UNUSED3 = 4194304,// Originally internal to VTex as TEXTUREFLAGS_ALPHATESTMIPGENERATION.
DEPRECATED_AlphaTestMipGeneration = 4194304,
NoDepthBuffer = 8388608,
UNUSED4 = 16777216,// Originally internal to VTex as TEXTUREFLAGS_NICEFILTERED.
DEPRECATED_NiceFiltered = 16777216,
ClampU = 33554432,
VertexTexture = 67108864,
SSBump = 134217728,
UNUSED5 = 268435456,// Originally TEXTUREFLAGS_UNFILTERABLE_OK.
DEPRECATED_Unfilterable_OK = 268435456,
BORDER = 536870912,
DEPRECATED_SpecVar_Red = 1073741824,
DEPRECATED_SpecVar_Alpha = 2147483648
}
export declare enum VCompressionMethods {
Deflate = 8,
ZSTD = 93
}
export declare const NO_DATA = 2;