mirror of https://github.com/PCSX2/pcsx2.git
GS-qt: Gray out texture barriers and geometry shaders on d3d or sw renderers.
This commit is contained in:
parent
65072ddbe5
commit
b3c7b07813
|
@ -354,8 +354,10 @@ void GraphicsSettingsWidget::updateRendererDependentOptions()
|
|||
|
||||
#ifdef _WIN32
|
||||
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
|
||||
const bool is_dx11 = false;
|
||||
const bool is_sw_dx = false;
|
||||
#endif
|
||||
|
||||
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_ui.overrideTextureBarriers->setDisabled(is_sw_dx);
|
||||
m_ui.overrideGeometryShader->setDisabled(is_sw_dx);
|
||||
|
||||
m_ui.useBlitSwapChain->setEnabled(is_dx11);
|
||||
|
||||
// populate adapters
|
||||
|
|
Loading…
Reference in New Issue