Scripting API

Scripting API

ImportCompression

Enum in Abyss.Core, from Abyss.Core.

Whether an imported texture is block-compressed, and how well.

public enum ImportCompression : uint

Remarks

A compressed texture is kept on the GPU in blocks of four by four texels, a fixed number of bytes each, which the hardware decodes as it samples: a quarter or an eighth of the memory, at some of its detail. Which format a texture takes follows from its type and whether it has alpha.

Values

NameValueDescription
Default0Nothing said, which is ImportCompression.NormalQuality.
Uncompressed1Every texel as it was made, four bytes each, or one for a single channel.
LowQuality2The smallest format for the texture; for now the one ImportCompression.NormalQuality picks, on every platform.
NormalQuality3BC1 for color, BC3 with alpha, BC5 for a normal map, BC4 for a single channel.
HighQuality4BC7 for color, with alpha or without: BC3's memory, nearer the picture.