pub enum MeshBufferAllocatorEvent {
NewZone {
capacity: usize,
},
NewZoneForBuffers {
sizes: Vec<usize>,
types: Vec<MeshBufferType>,
},
NewBuffer {
length: usize,
buffer_type: MeshBufferType,
},
NewBufferWithData {
data: Vec<u8>,
buffer_type: MeshBufferType,
},
NewBufferFromZone {
zone: Option<MeshBufferZone>,
length: usize,
buffer_type: MeshBufferType,
},
NewBufferFromZoneWithData {
zone: Option<MeshBufferZone>,
data: Vec<u8>,
buffer_type: MeshBufferType,
},
}Expand description
Describes one MDLMeshBufferAllocator protocol request routed into Rust.
Variants§
NewZone
Allocates a new zone with the requested capacity.
NewZoneForBuffers
Allocates a zone sized for the requested buffer sizes and types.
NewBuffer
Allocates a buffer with the requested length and type.
NewBufferWithData
Allocates a buffer initialized from the provided bytes.
NewBufferFromZone
Allocates a buffer from the provided zone.
NewBufferFromZoneWithData
Allocates a buffer from the provided zone and initial bytes.
Trait Implementations§
Source§impl Clone for MeshBufferAllocatorEvent
impl Clone for MeshBufferAllocatorEvent
Source§fn clone(&self) -> MeshBufferAllocatorEvent
fn clone(&self) -> MeshBufferAllocatorEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for MeshBufferAllocatorEvent
impl RefUnwindSafe for MeshBufferAllocatorEvent
impl !Send for MeshBufferAllocatorEvent
impl !Sync for MeshBufferAllocatorEvent
impl Unpin for MeshBufferAllocatorEvent
impl UnsafeUnpin for MeshBufferAllocatorEvent
impl UnwindSafe for MeshBufferAllocatorEvent
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