Table of Contents

Enum TextureCodec

Namespace
ValveResourceFormat.TextureDecoders
Assembly
ValveResourceFormat.dll

Texture codec flags for decoding and color space conversions.

[Flags]
public enum TextureCodec

Fields

None = 0

No codec flags.

YCoCg = 1

Co, Cg, Scale, and Y stored in RGBA respectively.

RGBM = 2

HDR content stored in 8 bit by muliplying colors with alpha and another constant (typically 16)

HemiOctRB = 4

Hemi Octahedron surface normal data in RB. Widens to RGB.

NormalizeNormals = 8

Reconstruct normal Z from X and Y.

Dxt5nm = 16

Swizzle red with alpha (exploiting higher bitcount alpha in dxt5)

ColorSpaceLinear = 32

Indicates the texture data is stored in linear color space.

ColorSpaceSrgb = 64

Indicates the texture data is stored in sRGB gamma space.

ForceLDR = 128

Force decode HDR content to LDR.

Auto = 1073741824

Automatically determine codec flags.