Merge pull request #5891 from ameerj/bgra-ogl

renderer_opengl: Use compute shaders to swizzle BGR textures on copy
This commit is contained in:
Rodrigo Locatti 2021-03-09 02:47:51 -03:00 committed by GitHub
commit daf5c5060b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 212 additions and 30 deletions

View file

@ -93,6 +93,11 @@ struct TextureCacheRuntime {
// No known Vulkan driver has broken image views
return false;
}
bool HasNativeBgr() const noexcept {
// All known Vulkan drivers can natively handle BGR textures
return true;
}
};
class Image : public VideoCommon::ImageBase {