Implement 5x5 and 10x10 ASTC texture formats

This commit is contained in:
Billy Laws 2022-06-04 17:42:37 +01:00
parent cc5a3f99c1
commit deb7a0e22a
2 changed files with 12 additions and 0 deletions

View File

@ -2173,10 +2173,14 @@ namespace skyline::gpu::interconnect {
TIC_FORMAT_CASE_ST(Astc4x4, Astc4x4, Unorm);
TIC_FORMAT_CASE_ST_SRGB(Astc4x4, Astc4x4, Unorm);
TIC_FORMAT_CASE_ST(Astc5x5, Astc5x5, Unorm);
TIC_FORMAT_CASE_ST_SRGB(Astc5x5, Astc5x5, Unorm);
TIC_FORMAT_CASE_ST(Astc6x6, Astc6x6, Unorm);
TIC_FORMAT_CASE_ST_SRGB(Astc6x6, Astc6x6, Unorm);
TIC_FORMAT_CASE_ST(Astc8x8, Astc8x8, Unorm);
TIC_FORMAT_CASE_ST_SRGB(Astc8x8, Astc8x8, Unorm);
TIC_FORMAT_CASE_ST(Astc10x10, Astc10x10, Unorm);
TIC_FORMAT_CASE_ST_SRGB(Astc10x10, Astc10x10, Unorm);
TIC_FORMAT_CASE_ST(BC2, BC2, Unorm);
TIC_FORMAT_CASE_ST_SRGB(BC2, BC2, Unorm);
TIC_FORMAT_CASE_ST(BC3, BC3, Unorm);

View File

@ -136,6 +136,10 @@ namespace skyline::gpu::format {
.blockWidth = 4,
.blockHeight = 4
);
FORMAT_SUFF_UNORM_SRGB(Astc5x5, 128, eAstc5x5, Block,
.blockWidth = 5,
.blockHeight = 5
);
FORMAT_SUFF_UNORM_SRGB(Astc6x6, 128, eAstc6x6, Block,
.blockWidth = 6,
.blockHeight = 6
@ -144,6 +148,10 @@ namespace skyline::gpu::format {
.blockWidth = 8,
.blockHeight = 8
);
FORMAT_SUFF_UNORM_SRGB(Astc10x10, 128, eAstc10x10, Block,
.blockWidth = 10,
.blockHeight = 10
);
// Depth/Stencil Formats
// All of these have a G->R swizzle