Struct wgpu_core::device::descriptor::DescriptorAllocator[][src]

pub struct DescriptorAllocator<B: Backend>(_);

Implementations

impl<B: Backend> DescriptorAllocator<B>[src]

pub fn new() -> Self[src]

pub fn allocate(
    &mut self,
    device: &B::Device,
    layout: &B::DescriptorSetLayout,
    layout_descriptor_count: &DescriptorTotalCount,
    count: u32
) -> Result<Vec<DescriptorSet<B>>, DeviceError>
[src]

pub fn free(
    &mut self,
    device: &B::Device,
    sets: impl IntoIterator<Item = DescriptorSet<B>>
)
[src]

pub fn cleanup(&mut self, device: &B::Device)[src]

Trait Implementations

impl<B: Debug + Backend> Debug for DescriptorAllocator<B> where
    B::DescriptorPool: Debug,
    B::DescriptorSet: Debug
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for DescriptorAllocator<B> where
    <B as Backend>::DescriptorPool: RefUnwindSafe,
    <B as Backend>::DescriptorSet: RefUnwindSafe

impl<B> Send for DescriptorAllocator<B>

impl<B> Sync for DescriptorAllocator<B>

impl<B> Unpin for DescriptorAllocator<B> where
    <B as Backend>::DescriptorPool: Unpin,
    <B as Backend>::DescriptorSet: Unpin

impl<B> UnwindSafe for DescriptorAllocator<B> where
    <B as Backend>::DescriptorPool: UnwindSafe,
    <B as Backend>::DescriptorSet: UnwindSafe

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> Downcast<T> for T

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.

impl<T> Upcast<T> for T