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

Binding multiple descriptor sets simultaneously #30

Open
Qendolin opened this issue Nov 20, 2023 · 0 comments
Open

Binding multiple descriptor sets simultaneously #30

Qendolin opened this issue Nov 20, 2023 · 0 comments

Comments

@Qendolin
Copy link

Qendolin commented Nov 20, 2023

vklCreateGraphicsPipeline does not allow multiple descriptor set layouts. VkPipelineLayoutCreateInfo.setLayoutCount is limited to 1.

auto pipelineLayout = mDevice.createPipelineLayoutUnique(
vk::PipelineLayoutCreateInfo{} // A pipeline's layout describes all resources used by a pipeline or in shaders.
.setSetLayoutCount(1u)
.setPSetLayouts(&descriptorSetLayout.get()) // We don't need the actual descriptors when defining the PIPELINE. The LAYOUT is sufficient at this point.
, nullptr, mDispatchLoader

If I understand it correctly (I'm new to Vulkan) this prevents binding different descriptor sets that change at different rates when recording commands. This presentation shows what I want to be able to do. The same technique is also referenced here.

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

No branches or pull requests

1 participant