From 99baa45aa775911e5cdc76224a773eca5754afda Mon Sep 17 00:00:00 2001 From: Sergey Yablokov Date: Wed, 20 Nov 2024 00:10:53 +0100 Subject: [PATCH] Fix validation warning --- internal/Vk/BufferVK.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/Vk/BufferVK.cpp b/internal/Vk/BufferVK.cpp index 9aef0313..bb022c26 100644 --- a/internal/Vk/BufferVK.cpp +++ b/internal/Vk/BufferVK.cpp @@ -25,7 +25,7 @@ VkBufferUsageFlags GetVkBufferUsageFlags(const Context *ctx, const eBufType type } else if (type == eBufType::Upload) { } else if (type == eBufType::Readback) { } else if (type == eBufType::AccStructure) { - flags |= VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR; + flags |= VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR | VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT; } else if (type == eBufType::ShaderBinding) { flags |= VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR | VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT; } else if (type == eBufType::Indirect) {