[][src]Struct nobs_vkpipes::descriptor::pool::Pool

pub struct Pool {
    pub device: Device,
    pub handle: DescriptorPool,
    pub count: PoolSizes,
    pub count_dsets: u32,
    pub capacity: PoolSizes,
    pub capacity_dsets: u32,
}

Simple descriptor pool, that tracks number of available descriptors for each descriptor type

Fields

device: Devicehandle: DescriptorPoolcount: PoolSizescount_dsets: u32capacity: PoolSizescapacity_dsets: u32

Methods

impl Pool[src]

pub fn with_capacity(
    device: Device,
    sizes: &[DescriptorPoolSize],
    num_sets: u32
) -> Result<Pool, Error>
[src]

Create a new descriptor pool with the specified pool sizes

Arguments

  • device - device handle
  • sizes - maximum number of slots for each destriptor type in the pool.
  • num_sets - maximum number of descriptor in the pool.

pub fn new_dset(
    &mut self,
    layout: DescriptorSetLayout,
    sizes: &PoolSizes
) -> Result<DescriptorSet, Error>
[src]

Create a new descriptor set from the pool

Arguments

  • layout - layout of the destriptor set
  • sizes - number of slots consumed by this destriptor set

Trait Implementations

impl Drop for Pool[src]

Auto Trait Implementations

impl Send for Pool

impl Sync for Pool

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.