pub struct DescriptorAllocator {
buckets: HashMap<BucketKey, Bucket>,
max_update_after_bind_descriptors_in_all_pools: u32,
update_after_bind_descriptors_in_all_pools: u32,
}Available on
vulkan only.Fields§
§buckets: HashMap<BucketKey, Bucket>§max_update_after_bind_descriptors_in_all_pools: u32§update_after_bind_descriptors_in_all_pools: u32Implementations§
Source§impl DescriptorAllocator
impl DescriptorAllocator
pub fn new(max_update_after_bind_descriptors_in_all_pools: u32) -> Self
pub fn register_layout( &mut self, device: &Device, layout: &BindGroupLayout, ) -> Result<(), DeviceError>
pub fn unregister_layout(&mut self, device: &Device, layout: &BindGroupLayout)
pub unsafe fn alloc( &mut self, device: &Device, layout: &BindGroupLayout, ) -> Result<DescriptorSet, DeviceError>
pub unsafe fn free(&mut self, device: &Device, set: DescriptorSet)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DescriptorAllocator
impl RefUnwindSafe for DescriptorAllocator
impl Send for DescriptorAllocator
impl Sync for DescriptorAllocator
impl Unpin for DescriptorAllocator
impl UnwindSafe for DescriptorAllocator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more