forked from Nominom/BCnEncoder.NET
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCompressionFormat.cs
More file actions
45 lines (44 loc) · 1.11 KB
/
Copy pathCompressionFormat.cs
File metadata and controls
45 lines (44 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
namespace BCnEncoder.Shared
{
public enum CompressionFormat
{
/// <summary>
/// BC1 / DXT1 with no alpha. Very widely supported and good compression ratio.
/// </summary>
BC1,
/// <summary>
/// BC1 / DXT1 with 1-bit of alpha.
/// </summary>
BC1WithAlpha,
/// <summary>
/// BC2 / DXT3 encoding with alpha. Good for sharp alpha transitions.
/// </summary>
BC2,
/// <summary>
/// BC3 / DXT5 encoding with alpha. Good for smooth alpha transitions.
/// </summary>
BC3,
/// <summary>
/// BC4 single-channel encoding. Only luminance is encoded.
/// </summary>
BC4,
/// <summary>
/// BC5 dual-channel encoding. Only red and green channels are encoded.
/// </summary>
BC5,
/// <summary>
/// BC6H / BPTC float encoding. Can compress HDR textures without alpha. Currently not supported.
/// </summary>
BC6,
/// <summary>
/// BC7 / BPTC unorm encoding. Very high quality rgba or rgb encoding. Also very slow.
/// </summary>
BC7
}
public static class CompressionFormatExtensions {
public static bool IsCompressedFormat(this CompressionFormat format)
{
return true;
}
}
}