Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is VK_BUFFER_USAGE_STORAGE_BUFFER_BIT required in the buffer_device_address example? #1286

Open
mahkoh opened this issue Feb 27, 2025 · 0 comments

Comments

@mahkoh
Copy link

mahkoh commented Feb 27, 2025

The VK_KHR_buffer_device_address example says that VK_BUFFER_USAGE_STORAGE_BUFFER_BIT is required:

// To be able to query the buffer device address, we must use the SHADER_DEVICE_ADDRESS_BIT usage flag.
// STORAGE_BUFFER is also required.
VkBufferCreateInfo create_info = vkb::initializers::buffer_create_info(
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT_KHR, mesh_size);

But as far as I can tell, the vulkan specification only requires this bit for descriptors and ray tracing. I don't believe that either of those apply to the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant