Struct gpu_descriptor::allocator::DescriptorBucket
source · struct DescriptorBucket<P> {
offset: u64,
pools: VecDeque<DescriptorPool<P>>,
total: u32,
update_after_bind: bool,
size: DescriptorTotalCount,
}
Fields§
§offset: u64
§pools: VecDeque<DescriptorPool<P>>
§total: u32
§update_after_bind: bool
§size: DescriptorTotalCount
Implementations§
source§impl<P> DescriptorBucket<P>
impl<P> DescriptorBucket<P>
fn new(update_after_bind: bool, size: DescriptorTotalCount) -> Self
fn new_pool_size(&self, minimal_set_count: u32) -> (DescriptorTotalCount, u32)
unsafe fn allocate<L, S>( &mut self, device: &impl DescriptorDevice<L, P, S>, layout: &L, count: u32, allocated_sets: &mut Vec<DescriptorSet<S>>, ) -> Result<(), AllocationError>
unsafe fn free<L, S>( &mut self, device: &impl DescriptorDevice<L, P, S>, raw_sets: impl IntoIterator<Item = S>, pool_id: u64, )
unsafe fn cleanup<L, S>(&mut self, device: &impl DescriptorDevice<L, P, S>)
Trait Implementations§
source§impl<P: Debug> Debug for DescriptorBucket<P>
impl<P: Debug> Debug for DescriptorBucket<P>
Auto Trait Implementations§
impl<P> Freeze for DescriptorBucket<P>
impl<P> RefUnwindSafe for DescriptorBucket<P>where
P: RefUnwindSafe,
impl<P> Send for DescriptorBucket<P>where
P: Send,
impl<P> Sync for DescriptorBucket<P>where
P: Sync,
impl<P> Unpin for DescriptorBucket<P>where
P: Unpin,
impl<P> UnwindSafe for DescriptorBucket<P>where
P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more