Trait MDLMeshBufferZone

Source
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§

Source

unsafe fn capacity(&self) -> NSUInteger
where Self: Sized + Message,

Total size of memory in the zone

Source

unsafe fn allocator( &self, ) -> Retained<ProtocolObject<dyn MDLMeshBufferAllocator>>
where Self: Sized + Message,

Allocator used to create the zone

Trait Implementations§

Source§

impl ProtocolType for dyn MDLMeshBufferZone

Source§

const NAME: &'static str = "MDLMeshBufferZone"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MDLMeshBufferZone

Implementations on Foreign Types§

Source§

impl<T> MDLMeshBufferZone for ProtocolObject<T>

Implementors§