Surfaces: Implement R4G4B4A4U format.

This commit is contained in:
Fernando Sahmkow 2019-10-08 12:54:59 -04:00 committed by FernandoS27
parent ecba8090f7
commit 57cac4e614
4 changed files with 41 additions and 24 deletions

View file

@ -212,6 +212,14 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format,
break;
}
break;
case Tegra::Texture::TextureFormat::A4B4G4R4:
switch (component_type) {
case Tegra::Texture::ComponentType::UNORM:
return PixelFormat::R4G4B4A4U;
default:
break;
}
break;
case Tegra::Texture::TextureFormat::R8:
switch (component_type) {
case Tegra::Texture::ComponentType::UNORM: