1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Enable VK_EXT_conditional_rendering if available

This commit is contained in:
Philip Rebohle 2019-03-23 22:44:13 +01:00
parent 7f211545ee
commit 8f7e606583
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 1 deletions

View File

@ -238,8 +238,9 @@ namespace dxvk {
Rc<DxvkDevice> DxvkAdapter::createDevice(std::string clientApi, DxvkDeviceFeatures enabledFeatures) {
DxvkDeviceExtensions devExtensions;
std::array<DxvkExt*, 17> devExtensionList = {{
std::array<DxvkExt*, 18> devExtensionList = {{
&devExtensions.amdMemoryOverallocationBehaviour,
&devExtensions.extConditionalRendering,
&devExtensions.extDepthClipEnable,
&devExtensions.extHostQueryReset,
&devExtensions.extMemoryPriority,

View File

@ -258,6 +258,7 @@ namespace dxvk {
*/
struct DxvkDeviceExtensions {
DxvkExt amdMemoryOverallocationBehaviour= { VK_AMD_MEMORY_OVERALLOCATION_BEHAVIOR_EXTENSION_NAME, DxvkExtMode::Optional };
DxvkExt extConditionalRendering = { VK_EXT_CONDITIONAL_RENDERING_EXTENSION_NAME, DxvkExtMode::Optional };
DxvkExt extDepthClipEnable = { VK_EXT_DEPTH_CLIP_ENABLE_EXTENSION_NAME, DxvkExtMode::Optional };
DxvkExt extHostQueryReset = { VK_EXT_HOST_QUERY_RESET_EXTENSION_NAME, DxvkExtMode::Optional };
DxvkExt extMemoryPriority = { VK_EXT_MEMORY_PRIORITY_EXTENSION_NAME, DxvkExtMode::Optional };