18 throw new NotSupportedException(
"ASTC texture is not supported on this device.");
24 (
ColorFormat.LinearLDR, 4, 4) => InternalFormat.CompressedRgbaAstc4x4,
25 (
ColorFormat.SrgbLDR, 4, 4) => InternalFormat.CompressedSrgb8Alpha8Astc4x4,
26 (
ColorFormat.LinearLDR, 5, 4) => InternalFormat.CompressedRgbaAstc5x4,
27 (
ColorFormat.SrgbLDR, 5, 4) => InternalFormat.CompressedSrgb8Alpha8Astc5x4,
28 (
ColorFormat.LinearLDR, 5, 5) => InternalFormat.CompressedRgbaAstc5x5,
29 (
ColorFormat.SrgbLDR, 5, 5) => InternalFormat.CompressedSrgb8Alpha8Astc5x5,
30 (
ColorFormat.LinearLDR, 6, 5) => InternalFormat.CompressedRgbaAstc6x5,
31 (
ColorFormat.SrgbLDR, 6, 5) => InternalFormat.CompressedSrgb8Alpha8Astc6x5,
32 (
ColorFormat.LinearLDR, 6, 6) => InternalFormat.CompressedRgbaAstc6x6,
33 (
ColorFormat.SrgbLDR, 6, 6) => InternalFormat.CompressedSrgb8Alpha8Astc6x6,
34 (
ColorFormat.LinearLDR, 8, 5) => InternalFormat.CompressedRgbaAstc8x5,
35 (
ColorFormat.SrgbLDR, 8, 5) => InternalFormat.CompressedSrgb8Alpha8Astc8x5,
36 (
ColorFormat.LinearLDR, 8, 6) => InternalFormat.CompressedRgbaAstc8x6,
37 (
ColorFormat.SrgbLDR, 8, 6) => InternalFormat.CompressedSrgb8Alpha8Astc8x6,
38 (
ColorFormat.LinearLDR, 8, 8) => InternalFormat.CompressedRgbaAstc8x8,
39 (
ColorFormat.SrgbLDR, 8, 8) => InternalFormat.CompressedSrgb8Alpha8Astc8x8,
40 (
ColorFormat.LinearLDR, 10, 5) => InternalFormat.CompressedRgbaAstc10x5,
41 (
ColorFormat.SrgbLDR, 10, 5) => InternalFormat.CompressedSrgb8Alpha8Astc10x5,
42 (
ColorFormat.LinearLDR, 10, 6) => InternalFormat.CompressedRgbaAstc10x6,
43 (
ColorFormat.SrgbLDR, 10, 6) => InternalFormat.CompressedSrgb8Alpha8Astc10x6,
44 (
ColorFormat.LinearLDR, 10, 8) => InternalFormat.CompressedRgbaAstc10x8,
45 (
ColorFormat.SrgbLDR, 10, 8) => InternalFormat.CompressedSrgb8Alpha8Astc10x8,
46 (
ColorFormat.LinearLDR, 10, 10) => InternalFormat.CompressedRgbaAstc10x10,
47 (
ColorFormat.SrgbLDR, 10, 10) => InternalFormat.CompressedSrgb8Alpha8Astc10x10,
48 (
ColorFormat.LinearLDR, 12, 10) => InternalFormat.CompressedRgbaAstc12x10,
49 (
ColorFormat.SrgbLDR, 12, 10) => InternalFormat.CompressedSrgb8Alpha8Astc12x10,
50 (
ColorFormat.LinearLDR, 12, 12) => InternalFormat.CompressedRgbaAstc12x12,
51 (
ColorFormat.SrgbLDR, 12, 12) => InternalFormat.CompressedSrgb8Alpha8Astc12x12,
52 _ =>
throw new InvalidOperationException(
"Unsupported surface format.")