Struct wgpu_core::device::descriptor::DescriptorAllocator [−][src]
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]
&mut self,
device: &B::Device,
layout: &B::DescriptorSetLayout,
layout_descriptor_count: &DescriptorTotalCount,
count: u32
) -> Result<Vec<DescriptorSet<B>>, DeviceError>
pub fn free(
&mut self,
device: &B::Device,
sets: impl IntoIterator<Item = DescriptorSet<B>>
)[src]
&mut self,
device: &B::Device,
sets: impl IntoIterator<Item = DescriptorSet<B>>
)
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]
B::DescriptorPool: Debug,
B::DescriptorSet: Debug,
Auto Trait Implementations
impl<B> RefUnwindSafe for DescriptorAllocator<B> where
<B as Backend>::DescriptorPool: RefUnwindSafe,
<B as Backend>::DescriptorSet: RefUnwindSafe, [src]
<B as Backend>::DescriptorPool: RefUnwindSafe,
<B as Backend>::DescriptorSet: RefUnwindSafe,
impl<B> Send for DescriptorAllocator<B>[src]
impl<B> Sync for DescriptorAllocator<B>[src]
impl<B> Unpin for DescriptorAllocator<B> where
<B as Backend>::DescriptorPool: Unpin,
<B as Backend>::DescriptorSet: Unpin, [src]
<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, [src]
<B as Backend>::DescriptorPool: UnwindSafe,
<B as Backend>::DescriptorSet: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.