mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (MG_Backend/DirectGLES): fix Super Duper Vanilla on Adreno
- emulate RGB16 SNORM fallback writes
This commit is contained in:
@@ -185,6 +185,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
|
||||
Flags<PixelFormatNormalizeOptionBit> GetDriverPixelFormatNormalizeOptions() {
|
||||
Flags<PixelFormatNormalizeOptionBit> options = PixelFormatNormalizeOptionBit::NoDepthComponent32;
|
||||
options |= PixelFormatNormalizeOptionBit::NoRGBA8Snorm;
|
||||
options |= PixelFormatNormalizeOptionBit::NoRGB16Snorm;
|
||||
if (!g_GLESCapabilities.SupportsNorm16Texture) {
|
||||
options |= PixelFormatNormalizeOptionBit::NoNorm16;
|
||||
}
|
||||
@@ -212,6 +213,10 @@ namespace MobileGL::MG_Backend::DirectGLES {
|
||||
reasons.push_back(forced ? "RGBA8_SNORM fallback forced by backend policy"
|
||||
: "RGBA8_SNORM render target path is not supported");
|
||||
}
|
||||
if (options & PixelFormatNormalizeOptionBit::NoRGB16Snorm) {
|
||||
reasons.push_back(forced ? "RGB16_SNORM fallback forced by backend policy"
|
||||
: "RGB16_SNORM render target path is not supported");
|
||||
}
|
||||
if (options & PixelFormatNormalizeOptionBit::NoDepthComponent32) {
|
||||
reasons.push_back("GL_DEPTH_COMPONENT32 native probe failed on OpenGL ES");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user