Changeset 105143 in vbox
- Timestamp:
- Jul 4, 2024 10:43:56 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/dxvk-2.3.1/src/dxvk/dxvk_adapter.cpp
r105141 r105143 313 313 m_deviceFeatures.core.features.variableMultisampleRate; 314 314 315 #ifndef VBOX 315 316 // Always enable memory model so client APIs can use it 316 317 enabledFeatures.vk12.vulkanMemoryModel = VK_TRUE; 318 #else 319 /* Not available with MoltenVK. */ 320 enabledFeatures.vk12.vulkanMemoryModel = m_deviceFeatures.vk12.vulkanMemoryModel; 321 #endif 317 322 318 323 // Optionally used by some client API extensions … … 343 348 m_deviceFeatures.vk13.pipelineCreationCacheControl; 344 349 350 #ifndef VBOX 345 351 // Core features that we're relying on in various places 346 352 enabledFeatures.vk13.synchronization2 = VK_TRUE; 347 353 enabledFeatures.vk13.dynamicRendering = VK_TRUE; 354 #else 355 /* Not available with MoltenVK. */ 356 enabledFeatures.vk13.synchronization2 = m_deviceFeatures.vk13.synchronization2; 357 enabledFeatures.vk13.dynamicRendering = m_deviceFeatures.vk13.dynamicRendering; 358 #endif 348 359 349 360 // We expose depth clip rather than depth clamp to client APIs … … 383 394 m_deviceFeatures.extMemoryPriority.memoryPriority; 384 395 396 #ifndef VBOX 385 397 // Require robustBufferAccess2 since we use the robustness alignment 386 398 // info in a number of places, and require null descriptor support … … 389 401 enabledFeatures.extRobustness2.robustImageAccess2 = m_deviceFeatures.extRobustness2.robustImageAccess2; 390 402 enabledFeatures.extRobustness2.nullDescriptor = VK_TRUE; 403 #else 404 /* Not available with MoltenVK. */ 405 enabledFeatures.extRobustness2.robustBufferAccess2 = m_deviceFeatures.extRobustness2.robustBufferAccess2; 406 enabledFeatures.extRobustness2.robustImageAccess2 = m_deviceFeatures.extRobustness2.robustImageAccess2; 407 enabledFeatures.extRobustness2.nullDescriptor = m_deviceFeatures.extRobustness2.nullDescriptor; 408 #endif 391 409 392 410 // We use this to avoid decompressing SPIR-V shaders in some situations
Note:
See TracChangeset
for help on using the changeset viewer.