dxgsg9: Add missing formats to DXTextureContext9::get_bits_per_pixel

This commit is contained in:
rdb 2024-10-10 19:49:15 +02:00
parent 05cf72e22f
commit eac1cb57c4
1 changed files with 14 additions and 0 deletions

View File

@ -2464,6 +2464,20 @@ get_bits_per_pixel(Texture::Format format, int *alphbits) {
*alphbits = 32;
return 128;
case Texture::F_r16:
return 16;
case Texture::F_rg16:
return 16 * 2;
case Texture::F_rgb16:
return 16 * 3;
case Texture::F_r32:
return 32;
case Texture::F_rg32:
return 32 * 2;
case Texture::F_rgb32:
return 32 * 3;
case Texture::F_srgb:
return 24;
case Texture::F_srgb_alpha: