GS-qt: Gray out texture barriers and geometry shaders on d3d or sw renderers.

This commit is contained in:
lightningterror 2022-04-18 22:21:22 +02:00
parent 65072ddbe5
commit b3c7b07813
1 changed files with 5 additions and 0 deletions

View File

@ -354,8 +354,10 @@ void GraphicsSettingsWidget::updateRendererDependentOptions()
#ifdef _WIN32 #ifdef _WIN32
const bool is_dx11 = (type == GSRendererType::DX11 || type == GSRendererType::SW); const bool is_dx11 = (type == GSRendererType::DX11 || type == GSRendererType::SW);
const bool is_sw_dx = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::SW);
#else #else
const bool is_dx11 = false; const bool is_dx11 = false;
const bool is_sw_dx = false;
#endif #endif
const bool is_hardware = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::OGL || type == GSRendererType::VK); const bool is_hardware = (type == GSRendererType::DX11 || type == GSRendererType::DX12 || type == GSRendererType::OGL || type == GSRendererType::VK);
@ -413,6 +415,9 @@ void GraphicsSettingsWidget::updateRendererDependentOptions()
m_software_renderer_visible = is_software; m_software_renderer_visible = is_software;
} }
m_ui.overrideTextureBarriers->setDisabled(is_sw_dx);
m_ui.overrideGeometryShader->setDisabled(is_sw_dx);
m_ui.useBlitSwapChain->setEnabled(is_dx11); m_ui.useBlitSwapChain->setEnabled(is_dx11);
// populate adapters // populate adapters