[][src]Struct bedrock::CommandPool

pub struct CommandPool(_, _);

Opaque handle to a command pool object

Methods

impl CommandPool[src]

Following methods are enabled with [feature = "Implements"]

pub fn new(
    device: &Device,
    queue_family: u32,
    transient: bool,
    indiv_resettable: bool
) -> Result<Self>
[src]

Create a new command pool object

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn alloc(&self, count: u32, primary: bool) -> Result<Vec<CommandBuffer>>[src]

Allocate command buffers from an existing command pool

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn reset(&self, release_resources: bool) -> Result<()>[src]

Resets a command pool

Safety

Application cannot use command buffers after this call

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn free(&self, buffers: &[CommandBuffer])[src]

Free command buffers

Trait Implementations

impl Clone for CommandPool[src]

impl DeviceChild for CommandPool[src]

impl Drop for CommandPool[src]

impl VkHandle for CommandPool[src]

type Handle = VkCommandPool

Auto Trait Implementations

impl !RefUnwindSafe for CommandPool

impl !Send for CommandPool

impl !Sync for CommandPool

impl Unpin for CommandPool

impl !UnwindSafe for CommandPool

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.