mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
VideoCommon: add function to check whether TextureFormat is a valid value
This commit is contained in:
parent
e18053d307
commit
a1892a9c68
@ -50,6 +50,11 @@ static inline bool IsColorIndexed(TextureFormat format)
|
||||
format == TextureFormat::C14X2;
|
||||
}
|
||||
|
||||
static inline bool IsValidTextureFormat(TextureFormat format)
|
||||
{
|
||||
return format <= TextureFormat::RGBA8 || IsColorIndexed(format) || format == TextureFormat::CMPR;
|
||||
}
|
||||
|
||||
// The EFB Copy pipeline looks like:
|
||||
//
|
||||
// 1. Read EFB -> 2. Select color/depth -> 3. Downscale (optional)
|
||||
|
Loading…
x
Reference in New Issue
Block a user