Struct gpu_allocator::metal::Allocation
source · pub struct Allocation { /* private fields */ }
Implementations§
source§impl Allocation
impl Allocation
pub fn heap(&self) -> &Heap
pub fn make_buffer(&self) -> Option<Buffer>
pub fn make_texture(&self, desc: &TextureDescriptor) -> Option<Texture>
pub fn make_acceleration_structure(&self) -> Option<AccelerationStructure>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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