[−][src]Struct nobs_vulkanism_headless::pipes::descriptor::pool::Pool
Simple descriptor pool, that tracks number of available descriptors for each descriptor type
Fields
device: u64
handle: u64
count: Vec<DescriptorPoolSize>
count_dsets: u32
capacity: Vec<DescriptorPoolSize>
capacity_dsets: u32
Methods
impl Pool
[src]
pub fn with_capacity(
device: u64,
sizes: &[DescriptorPoolSize],
num_sets: u32
) -> Result<Pool, Error>
[src]
device: u64,
sizes: &[DescriptorPoolSize],
num_sets: u32
) -> Result<Pool, Error>
Create a new descriptor pool with the specified pool sizes
Arguments
device
- device handlesizes
- 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: u64,
sizes: &Vec<DescriptorPoolSize>
) -> Result<u64, Error>
[src]
&mut self,
layout: u64,
sizes: &Vec<DescriptorPoolSize>
) -> Result<u64, Error>
Create a new descriptor set from the pool
Arguments
layout
- layout of the destriptor setsizes
- number of slots consumed by this destriptor set
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,