Struct gpu_allocator::metal::AllocationCreateDesc
source · pub struct AllocationCreateDesc<'a> {
pub name: &'a str,
pub location: MemoryLocation,
pub size: u64,
pub alignment: u64,
}
Fields§
§name: &'a str
Name of the allocation, for tracking and debugging purposes
location: MemoryLocation
Location where the memory allocation should be stored
size: u64
§alignment: u64
Implementations§
source§impl<'a> AllocationCreateDesc<'a>
impl<'a> AllocationCreateDesc<'a>
pub fn buffer( device: &Device, name: &'a str, length: u64, location: MemoryLocation, ) -> Self
pub fn texture(device: &Device, name: &'a str, desc: &TextureDescriptor) -> Self
pub fn acceleration_structure_with_size( device: &Device, name: &'a str, size: u64, location: MemoryLocation, ) -> Self
Trait Implementations§
source§impl<'a> Clone for AllocationCreateDesc<'a>
impl<'a> Clone for AllocationCreateDesc<'a>
source§fn clone(&self) -> AllocationCreateDesc<'a>
fn clone(&self) -> AllocationCreateDesc<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for AllocationCreateDesc<'a>
impl<'a> RefUnwindSafe for AllocationCreateDesc<'a>
impl<'a> Send for AllocationCreateDesc<'a>
impl<'a> Sync for AllocationCreateDesc<'a>
impl<'a> Unpin for AllocationCreateDesc<'a>
impl<'a> UnwindSafe for AllocationCreateDesc<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)