Add BC2/3 format support

This commit is contained in:
Billy Laws 2022-01-21 22:37:29 +00:00 committed by PixelyIon
parent 2253bc3151
commit 6e48460c0d
2 changed files with 12 additions and 0 deletions

View File

@ -1686,6 +1686,8 @@ namespace skyline::gpu::interconnect {
TIC_FORMAT_CASE_NORM_INT(A2B10G10R10, A2B10G10R10, R, G, B, A);
TIC_FORMAT_CASE_ST(Astc4x4, Astc4x4, Unorm, R, G, B, A);
TIC_FORMAT_CASE_ST(Dxt1, Bc1, Unorm, R, G, B, A);
TIC_FORMAT_CASE_ST(Dxt23, Bc2, Unorm, R, G, B, A);
TIC_FORMAT_CASE_ST(Dxt45, Bc3, Unorm, R, G, B, A);
TIC_FORMAT_CASE_ST(Dxn1, Bc4111R, Unorm, OneFloat, OneFloat, OneFloat, R);
TIC_FORMAT_CASE_ST(Dxn1, Bc4RRR1, Unorm, R, R, R, OneFloat);
TIC_FORMAT_CASE_ST(BC7U, Bc7, Unorm, R, G, B, A);

View File

@ -101,6 +101,16 @@ namespace skyline::gpu::format {
.blockHeight = 4
);
FORMAT_SUFF_UNORM_SRGB(Bc2, 64, eBc2, Block,
.blockWidth = 4,
.blockHeight = 4
);
FORMAT_SUFF_UNORM_SRGB(Bc3, 64, eBc3, Block,
.blockWidth = 4,
.blockHeight = 4
);
FORMAT_SUFF_NORM(Bc4111R, 64, eBc4, Block,
.blockWidth = 4,
.blockHeight = 4,