Struct screen_13::driver::DescriptorPool
source · [−]pub struct DescriptorPool<P> where
P: SharedPointerKind, {
pub info: DescriptorPoolInfo,
pub device: SharedPointer<Device<P>, P>,
/* private fields */
}Fields
info: DescriptorPoolInfodevice: SharedPointer<Device<P>, P>Implementations
sourceimpl<P> DescriptorPool<P> where
P: SharedPointerKind,
impl<P> DescriptorPool<P> where
P: SharedPointerKind,
pub fn create(
device: &SharedPointer<Device<P>, P>,
info: impl Into<DescriptorPoolInfo>
) -> Result<Self, DriverError>
pub fn allocate_descriptor_set(
this: &SharedPointer<Self, P>,
layout: &DescriptorSetLayout<P>
) -> Result<DescriptorSet<P>, DriverError> where
P: 'static,
pub fn allocate_descriptor_sets(
this: &SharedPointer<Self, P>,
layout: &DescriptorSetLayout<P>,
count: u32
) -> Result<impl Iterator<Item = DescriptorSet<P>>, DriverError> where
P: 'static,
Trait Implementations
sourceimpl<P: Debug> Debug for DescriptorPool<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for DescriptorPool<P> where
P: SharedPointerKind,
sourceimpl<P> Deref for DescriptorPool<P> where
P: SharedPointerKind,
impl<P> Deref for DescriptorPool<P> where
P: SharedPointerKind,
type Target = DescriptorPool
type Target = DescriptorPool
The resulting type after dereferencing.
sourceimpl<P> Drop for DescriptorPool<P> where
P: SharedPointerKind,
impl<P> Drop for DescriptorPool<P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<P> !RefUnwindSafe for DescriptorPool<P>
impl<P> Send for DescriptorPool<P> where
P: Send,
impl<P> Sync for DescriptorPool<P> where
P: Sync,
impl<P> Unpin for DescriptorPool<P> where
P: Unpin,
impl<P> !UnwindSafe for DescriptorPool<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more