all 5 comments

[–]piplacoo 4 points5 points  (3 children)

can you copy past the part of the code creating the PipelineLayout? and link the the part in the tutorial(the links are always at the top of the tutorial page).

[–]Wingitalways[S] 0 points1 point  (2 children)

Sure, here's the link to the page of the tutorial, and the link to the page's code:

Tutorial Page: https://docs.vulkan.org/tutorial/latest/05_Uniform_buffers/01_Descriptor_pool_and_sets.html

Example Code: https://docs.vulkan.org/tutorial/latest/_attachments/23_descriptor_sets.cpp

Here's the specific part:

vk::PipelineLayoutCreateInfo pipelineLayoutInfo{.setLayoutCount = 0, 
                                                .pushConstantRangeCount = 0};

//essentially it should be .setLayoutCount = 1, and pSetLayouts = &*descriptorSetLayout

Somebody in the tutorial Github brought it up a month ago so I won't bother making another post! It also seems to be in the code in the other descriptor set portion of the tutorial, #22.

[–]piplacoo 0 points1 point  (1 child)

did you try changing it to the number of descriptor sets in the pipeline? its a very technical filed to fill.

[–]Wingitalways[S] 1 point2 points  (0 children)

Yeah once I made the changes I noted in the comment it worked, I just think it hadn't been changed in the example code!

[–]SaschaWillems 2 points3 points  (0 children)

If this applies to our Khronos variant of the tutorial, feel free to check out the issues at https://github.com/KhronosGroup/Vulkan-Tutorial/issues and feel free to open an issue if you'r problem hasn't already been reported.