diff --git a/src/dxvk/dxvk_adapter.cpp b/src/dxvk/dxvk_adapter.cpp index 65eeadfbd..43644b7ae 100644 --- a/src/dxvk/dxvk_adapter.cpp +++ b/src/dxvk/dxvk_adapter.cpp @@ -245,7 +245,7 @@ namespace dxvk { Rc DxvkAdapter::createDevice(std::string clientApi, DxvkDeviceFeatures enabledFeatures) { DxvkDeviceExtensions devExtensions; - std::array devExtensionList = {{ + std::array devExtensionList = {{ &devExtensions.amdMemoryOverallocationBehaviour, &devExtensions.amdShaderFragmentMask, &devExtensions.extConditionalRendering, @@ -258,6 +258,7 @@ namespace dxvk { &devExtensions.extShaderViewportIndexLayer, &devExtensions.extTransformFeedback, &devExtensions.extVertexAttributeDivisor, + &devExtensions.khrCreateRenderPass2, &devExtensions.khrDedicatedAllocation, &devExtensions.khrDescriptorUpdateTemplate, &devExtensions.khrDrawIndirectCount, diff --git a/src/dxvk/dxvk_extensions.h b/src/dxvk/dxvk_extensions.h index 7c9fa6344..1fa627a7d 100644 --- a/src/dxvk/dxvk_extensions.h +++ b/src/dxvk/dxvk_extensions.h @@ -270,6 +270,7 @@ namespace dxvk { DxvkExt extShaderViewportIndexLayer = { VK_EXT_SHADER_VIEWPORT_INDEX_LAYER_EXTENSION_NAME, DxvkExtMode::Optional }; DxvkExt extTransformFeedback = { VK_EXT_TRANSFORM_FEEDBACK_EXTENSION_NAME, DxvkExtMode::Optional }; DxvkExt extVertexAttributeDivisor = { VK_EXT_VERTEX_ATTRIBUTE_DIVISOR_EXTENSION_NAME, DxvkExtMode::Optional }; + DxvkExt khrCreateRenderPass2 = { VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME, DxvkExtMode::Optional }; DxvkExt khrDedicatedAllocation = { VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME, DxvkExtMode::Required }; DxvkExt khrDescriptorUpdateTemplate = { VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME, DxvkExtMode::Required }; DxvkExt khrDrawIndirectCount = { VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME, DxvkExtMode::Optional }; diff --git a/src/vulkan/vulkan_loader.h b/src/vulkan/vulkan_loader.h index 67c195974..ab5f84aba 100644 --- a/src/vulkan/vulkan_loader.h +++ b/src/vulkan/vulkan_loader.h @@ -266,6 +266,13 @@ namespace dxvk::vk { VULKAN_FN(vkCmdNextSubpass); VULKAN_FN(vkCmdEndRenderPass); VULKAN_FN(vkCmdExecuteCommands); + + #ifdef VK_KHR_create_renderpass2 + VULKAN_FN(vkCreateRenderPass2KHR); + VULKAN_FN(vkCmdBeginRenderPass2KHR); + VULKAN_FN(vkCmdNextSubpass2KHR); + VULKAN_FN(vkCmdEndRenderPass2KHR); + #endif #ifdef VK_KHR_descriptor_update_template VULKAN_FN(vkCreateDescriptorUpdateTemplateKHR);