Skip to content

Commit

Permalink
Update descriptor set allocation description (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Sep 19, 2023
1 parent 829c193 commit 72b9244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/book/src/uniform/descriptor_pool_and_sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ unsafe fn create_descriptor_sets(device: &Device, data: &mut AppData) -> Result<
}
```

A descriptor set allocation is described with a `vk::DescriptorSetAllocateInfo` struct. You need to specify the descriptor pool to allocate from, the number of descriptor sets to allocate, and the descriptor layout to base them on:
A descriptor set allocation is described with a `vk::DescriptorSetAllocateInfo` struct. You need to specify the descriptor pool to allocate from and an array of descriptor layouts that describes each of the descriptor sets you are allocating:

```rust,noplaypen
let layouts = vec![data.descriptor_set_layout; data.swapchain_images.len()];
Expand Down

0 comments on commit 72b9244

Please sign in to comment.