GPUDevice: Support R16I/R16U textures

This commit is contained in:
Stenzek
2023-12-19 01:40:45 +10:00
parent f5ddd7ba32
commit 717e0665ae
9 changed files with 55 additions and 28 deletions

View File

@ -470,7 +470,7 @@ bool OpenGLDevice::CheckFeatures(bool* buggy_pbo, FeatureMask disabled_features)
}
#endif
if (!m_features.supports_texture_buffers)
if (!m_features.supports_texture_buffers && !(disabled_features & FEATURE_MASK_TEXTURE_BUFFERS))
{
// Try SSBOs.
GLint max_fragment_storage_blocks = 0;
@ -487,7 +487,7 @@ bool OpenGLDevice::CheckFeatures(bool* buggy_pbo, FeatureMask disabled_features)
(max_fragment_storage_blocks > 0 && max_ssbo_size >= static_cast<GLint64>(1024 * 512 * sizeof(u16)));
if (m_features.texture_buffers_emulated_with_ssbo)
{
Log_InfoPrintf("Using shader storage buffers for VRAM writes.");
Log_InfoPrint("Using shader storage buffers for VRAM writes.");
m_features.supports_texture_buffers = true;
}
else