mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxvk] Enable VK_KHR_create_renderpass2 if available
This commit is contained in:
parent
1999ca9dd4
commit
d127c08487
@ -245,7 +245,7 @@ namespace dxvk {
|
||||
Rc<DxvkDevice> DxvkAdapter::createDevice(std::string clientApi, DxvkDeviceFeatures enabledFeatures) {
|
||||
DxvkDeviceExtensions devExtensions;
|
||||
|
||||
std::array<DxvkExt*, 23> devExtensionList = {{
|
||||
std::array<DxvkExt*, 24> 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,
|
||||
|
@ -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 };
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user