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
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 {