diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-10 15:06:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 15:06:19 -0400 |
| commit | 5ed8b7bc9d8f70d5dae4f009939ac9715adf83b4 (patch) | |
| tree | 946de379d9606f4ba12e76f8bec7483fc282833c /Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | |
| parent | d45e6c67293f10be4159d4e222ad3e903d7a835b (diff) | |
| parent | c18c039089bdc27cbccf92a9053ed80bb161a9b9 (diff) | |
Merge pull request #13403 from jordan-woyak/backend_info
VideoCommon: Move backend_info out of VideoConfig struct.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ObjectCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/ObjectCache.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp index e32675fe57..877ad70bd2 100644 --- a/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp +++ b/Source/Core/VideoBackends/Vulkan/ObjectCache.cpp @@ -206,18 +206,18 @@ bool ObjectCache::CreateDescriptorSetLayouts() // Don't set the GS bit if geometry shaders aren't available. if (g_ActiveConfig.UseVSForLinePointExpand()) { - if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) + if (g_backend_info.bSupportsGeometryShaders) ubo_bindings[UBO_DESCRIPTOR_SET_BINDING_GS].stageFlags |= VK_SHADER_STAGE_VERTEX_BIT; else ubo_bindings[UBO_DESCRIPTOR_SET_BINDING_GS].stageFlags = VK_SHADER_STAGE_VERTEX_BIT; } - else if (!g_ActiveConfig.backend_info.bSupportsGeometryShaders) + else if (!g_backend_info.bSupportsGeometryShaders) { create_infos[DESCRIPTOR_SET_LAYOUT_STANDARD_UNIFORM_BUFFERS].bindingCount--; } // Remove the dynamic vertex loader's buffer if it'll never be needed - if (!g_ActiveConfig.backend_info.bSupportsDynamicVertexLoader) + if (!g_backend_info.bSupportsDynamicVertexLoader) create_infos[DESCRIPTOR_SET_LAYOUT_STANDARD_SHADER_STORAGE_BUFFERS].bindingCount--; for (size_t i = 0; i < create_infos.size(); i++) @@ -286,13 +286,13 @@ bool ObjectCache::CreatePipelineLayouts() }}; const bool ssbos_in_standard = - g_ActiveConfig.backend_info.bSupportsBBox || g_ActiveConfig.UseVSForLinePointExpand(); + g_backend_info.bSupportsBBox || g_ActiveConfig.UseVSForLinePointExpand(); // If bounding box is unsupported, don't bother with the SSBO descriptor set. if (!ssbos_in_standard) pipeline_layout_info[PIPELINE_LAYOUT_STANDARD].setLayoutCount--; // If neither SSBO-using feature is supported, skip in ubershaders too - if (!ssbos_in_standard && !g_ActiveConfig.backend_info.bSupportsDynamicVertexLoader) + if (!ssbos_in_standard && !g_backend_info.bSupportsDynamicVertexLoader) pipeline_layout_info[PIPELINE_LAYOUT_UBER].setLayoutCount--; for (size_t i = 0; i < pipeline_layout_info.size(); i++) |
