[][src]Struct bedrock::DescriptorPool

pub struct DescriptorPool(_, _);

Opaque handle to a descriptor pool object

Methods

impl DescriptorPool[src]

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

pub fn new(
    device: &Device,
    max_sets: u32,
    pool_sizes: &[DescriptorPoolSize],
    allow_free: bool
) -> Result<Self>
[src]

Creates a descriptor pool object

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn alloc(
    &self,
    layouts: &[&DescriptorSetLayout]
) -> Result<Vec<VkDescriptorSet>>
[src]

Allocate one or more descriptor sets

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_FRAGMENTED_POOL

pub unsafe fn reset(&self) -> Result<()>[src]

Resets a descriptor pool object

Safety

Application cannot use descriptor sets 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, sets: &[VkDescriptorSet]) -> Result<()>[src]

Free one or more descriptor sets

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

Trait Implementations

impl DeviceChild for DescriptorPool[src]

impl Drop for DescriptorPool[src]

impl VkHandle for DescriptorPool[src]

type Handle = VkDescriptorPool

Auto Trait Implementations

impl !RefUnwindSafe for DescriptorPool

impl !Send for DescriptorPool

impl !Sync for DescriptorPool

impl Unpin for DescriptorPool

impl !UnwindSafe for DescriptorPool

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, 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.