1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[dxvk] Enable sparse binding features if supported

This commit is contained in:
Philip Rebohle 2025-03-01 15:36:03 +01:00
parent 5f46679764
commit 7f9a8a4c81

View File

@ -326,6 +326,12 @@ namespace dxvk {
// Always enable robust buffer access
enabledFeatures.core.features.robustBufferAccess = VK_TRUE;
// Always enable sparse residency if we can use it for efficient zero-initialization
if (m_deviceInfo.core.properties.sparseProperties.residencyNonResidentStrict) {
enabledFeatures.core.features.sparseBinding = m_deviceFeatures.core.features.sparseBinding;
enabledFeatures.core.features.sparseResidencyBuffer = m_deviceFeatures.core.features.sparseResidencyBuffer;
}
// Always enable features used by the HUD
enabledFeatures.core.features.multiDrawIndirect = VK_TRUE;
enabledFeatures.vk11.shaderDrawParameters = VK_TRUE;