File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,12 @@ namespace dxvk {
326326 // Always enable robust buffer access
327327 enabledFeatures.core .features .robustBufferAccess = VK_TRUE;
328328
329+ // Always enable sparse residency if we can use it for efficient zero-initialization
330+ if (m_deviceInfo.core .properties .sparseProperties .residencyNonResidentStrict ) {
331+ enabledFeatures.core .features .sparseBinding = m_deviceFeatures.core .features .sparseBinding ;
332+ enabledFeatures.core .features .sparseResidencyBuffer = m_deviceFeatures.core .features .sparseResidencyBuffer ;
333+ }
334+
329335 // Always enable features used by the HUD
330336 enabledFeatures.core .features .multiDrawIndirect = VK_TRUE;
331337 enabledFeatures.vk11 .shaderDrawParameters = VK_TRUE;
You can’t perform that action at this time.
0 commit comments