pub unsafe trait MDLMeshBufferZone: NSObjectProtocol {
// Provided methods
unsafe fn capacity(&self) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn allocator(
&self,
) -> Retained<ProtocolObject<dyn MDLMeshBufferAllocator>>
where Self: Sized + Message { ... }
}
Available on crate feature
MDLMeshBuffer
only.Expand description
A reference to a logical pool of memory from which mesh buffers would be allocated
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn capacity(&self) -> NSUInteger
unsafe fn capacity(&self) -> NSUInteger
Total size of memory in the zone
Sourceunsafe fn allocator(
&self,
) -> Retained<ProtocolObject<dyn MDLMeshBufferAllocator>>
unsafe fn allocator( &self, ) -> Retained<ProtocolObject<dyn MDLMeshBufferAllocator>>
Allocator used to create the zone