Fix StandardCommandBufferAllocator example docs (#2072)

This commit is contained in:
marc0246 2022-10-31 09:06:08 +01:00 committed by GitHub
parent 380e661c39
commit 6b2d21e9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -413,9 +413,6 @@ fn main() {
// Before we can start creating and recording command buffers, we need a way of allocating
// them. Vulkano provides a command buffer allocator, which manages raw Vulkan command pools
// underneath and provides a safe interface for them.
//
// A Vulkan command pool only works for one queue family, and vulkano's command buffer allocator
// reflects that, therefore we need to pass the queue family during creation.
let command_buffer_allocator =
StandardCommandBufferAllocator::new(device.clone(), Default::default());

View File

@ -420,9 +420,6 @@ fn main() {
// Before we can start creating and recording command buffers, we need a way of allocating
// them. Vulkano provides a command buffer allocator, which manages raw Vulkan command pools
// underneath and provides a safe interface for them.
//
// A Vulkan command pool only works for one queue family, and vulkano's command buffer allocator
// reflects that, therefore we need to pass the queue family during creation.
let command_buffer_allocator =
StandardCommandBufferAllocator::new(device.clone(), Default::default());