AbstractTexture: Support BGRA8 formats

Used for some driver's swap chains, and EFB to RAM.
This commit is contained in:
Stenzek
2017-09-09 15:24:41 +10:00
parent 49a9c33bd7
commit a584ccc7d8
5 changed files with 36 additions and 5 deletions

View File

@ -107,7 +107,13 @@ VkFormat GetVkFormatForHostTextureFormat(AbstractTextureFormat format)
return VK_FORMAT_BC7_UNORM_BLOCK;
case AbstractTextureFormat::RGBA8:
return VK_FORMAT_R8G8B8A8_UNORM;
case AbstractTextureFormat::BGRA8:
return VK_FORMAT_B8G8R8A8_UNORM;
default:
PanicAlert("Unhandled texture format.");
return VK_FORMAT_R8G8B8A8_UNORM;
}
}