fn allocate_command_buffer_handles(&self, level: CommandBufferLevel, count: u32)
            -> VdResult<SmallVec<[CommandBufferHandle; 16]>> {
        let alloc_info = CommandBufferAllocateInfo::builder()
            .command_pool(self.handle())
            .level(level)
            .command_buffer_count(count)
            .build();

        // let mut command_buffers: SmallVec<[CommandBufferHandle; 16]> = SmallVec::new();
        // command_buffers.reserve_exact(count as usize);
        // unsafe {
        //     command_buffers.set_len(count as usize);
        //     ::check(self.inner.device.proc_addr_loader().vk.vkAllocateCommandBuffers(
        //         self.inner.device.handle().0, alloc_info.as_raw(),
        //         command_buffers.as_mut_ptr() as *mut vks::VkCommandBuffer));
        // }
        // Ok(command_buffers)
        unsafe { self.inner.device.allocate_command_buffers(&alloc_info) }
    }
/// Allocates command buffers from an existing command pool.
///
/// https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkAllocateCommandBuffers.html
//
Allocates command buffers from an existing command pool.
Allocates command buffers from an existing command pool .
fn allocate_command_buffer_handles(&self, level: CommandBufferLevel, count: u32)
            -> VdResult<SmallVec<[CommandBufferHandle; 16]>> {
        let alloc_info = CommandBufferAllocateInfo::builder()
            .command_pool(self.handle())
            .level(level)
            .command_buffer_count(count)
            .build();
        // let mut command_buffers: SmallVec<[CommandBufferHandle; 16]> = SmallVec::new();
        // command_buffers.reserve_exact(count as usize);
        // unsafe {
        //     command_buffers.set_len(count as usize);
        //     ::check(self.inner.device.proc_addr_loader().vk.vkAllocateCommandBuffers(
        //         self.inner.device.handle().0, alloc_info.as_raw(),
        //         command_buffers.as_mut_ptr() as *mut vks::VkCommandBuffer));
        // }
        // Ok(command_buffers)
        unsafe { self.inner.device.allocate_command_buffers(&alloc_info) }
    }
fn allocate_command_buffer_handles ( & self , level : CommandBufferLevel , count : u32 ) -> VdResult < SmallVec < [ CommandBufferHandle ; 16 ] > > { let alloc_info = CommandBufferAllocateInfo :: builder ( ) . command_pool ( self . handle ( ) ) . level ( level ) . command_buffer_count ( count ) . build ( ) ; // let mut command_buffers: SmallVec<[CommandBufferHandle; 16]> = SmallVec::new(); // command_buffers.reserve_exact(count as usize); // unsafe { //     command_buffers.set_len(count as usize); //     ::check(self.inner.device.proc_addr_loader().vk.vkAllocateCommandBuffers( //         self.inner.device.handle().0, alloc_info.as_raw(), //         command_buffers.as_mut_ptr() as *mut vks::VkCommandBuffer)); // } // Ok(command_buffers) unsafe { self . inner . device . allocate_command_buffers ( & alloc_info ) } }
Allocates command buffers from an existing command pool.
Allocates command buffers from an existing command pool .
&self
level
CommandBufferLevel
count
u32
&self
level
CommandBufferLevel
count
u32