#[repr(C)]pub struct TiMemoryAllocateInfo {
pub size: u64,
pub host_write: TiBool,
pub host_read: TiBool,
pub export_sharing: TiBool,
pub usage: TiMemoryUsageFlags,
}Expand description
Structure TiMemoryAllocateInfo
Parameters of a newly allocated memory.
Fields§
§size: u64Size of the allocation in bytes.
host_write: TiBoolTrue if the host needs to write to the allocated memory.
host_read: TiBoolTrue if the host needs to read from the allocated memory.
export_sharing: TiBoolTrue if the memory allocation needs to be exported to other backends (e.g., from Vulkan to CUDA).
usage: TiMemoryUsageFlagsAll possible usage of this memory allocation. In most cases, bit_field.memory_usage.storage is enough.
Trait Implementations§
Source§impl Clone for TiMemoryAllocateInfo
impl Clone for TiMemoryAllocateInfo
Source§fn clone(&self) -> TiMemoryAllocateInfo
fn clone(&self) -> TiMemoryAllocateInfo
Returns a duplicate 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 moreimpl Copy for TiMemoryAllocateInfo
Auto Trait Implementations§
impl Freeze for TiMemoryAllocateInfo
impl RefUnwindSafe for TiMemoryAllocateInfo
impl Send for TiMemoryAllocateInfo
impl Sync for TiMemoryAllocateInfo
impl Unpin for TiMemoryAllocateInfo
impl UnwindSafe for TiMemoryAllocateInfo
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