pub struct CommandPool { /* private fields */ }Implementations§
Source§impl CommandPool
impl CommandPool
pub fn new( device: Arc<Device>, properties: CommandPoolProperties, ) -> VkResult<Self>
pub unsafe fn new_from_create_info( device: Arc<Device>, create_info_builder: CommandPoolCreateInfoBuilder<'_>, ) -> VkResult<Self>
pub fn allocate_command_buffers( self: &Arc<Self>, level: CommandBufferLevel, command_buffer_count: u32, ) -> VkResult<Vec<CommandBuffer>>
pub fn allocate_command_buffer( self: &Arc<Self>, level: CommandBufferLevel, ) -> VkResult<CommandBuffer>
pub unsafe fn allocate_command_buffers_from_allocate_info( self: &Arc<Self>, allocate_info_builder: CommandBufferAllocateInfoBuilder<'_>, ) -> VkResult<Vec<CommandBuffer>>
pub fn reset(&self, reset_flags: CommandPoolResetFlags) -> VkResult<()>
pub fn handle(&self) -> CommandPool
pub fn properties(&self) -> CommandPoolProperties
Trait Implementations§
Source§impl DeviceOwned for CommandPool
impl DeviceOwned for CommandPool
Auto Trait Implementations§
impl Freeze for CommandPool
impl RefUnwindSafe for CommandPool
impl Send for CommandPool
impl Sync for CommandPool
impl Unpin for CommandPool
impl UnwindSafe for CommandPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more