Skip to content

Commit

Permalink
Fix validation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Nov 22, 2024
1 parent 7550dd9 commit 99baa45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/Vk/BufferVK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 99baa45

Please sign in to comment.