From 6d2aa070cd85d094eab90b2125fb7fb291b23619 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 26 Feb 2025 00:02:48 +0100 Subject: [PATCH] [dxvk] Enable uniformBufferStandardLayout feature Core and required in Vulkan 1.2, but keep it optional anyway for now since we're not really doing anything critical with it. --- src/dxvk/dxvk_adapter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dxvk/dxvk_adapter.cpp b/src/dxvk/dxvk_adapter.cpp index a2c99eba9..82bdfc202 100644 --- a/src/dxvk/dxvk_adapter.cpp +++ b/src/dxvk/dxvk_adapter.cpp @@ -353,6 +353,10 @@ namespace dxvk { // Required for proper GPU synchronization enabledFeatures.vk12.timelineSemaphore = VK_TRUE; + // Used for better constant array packing in some cases + enabledFeatures.vk12.uniformBufferStandardLayout = + m_deviceFeatures.vk12.uniformBufferStandardLayout; + // Only enable the base image robustness feature if robustness 2 isn't // supported, since this is only a subset of what we actually want. enabledFeatures.vk13.robustImageAccess =