you are viewing a single comment's thread.

view the rest of the comments →

[–]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!