MTLAllocation

Trait MTLAllocation 

Source
pub unsafe trait MTLAllocation: NSObjectProtocol {
    // Provided method
    fn allocatedSize(&self) -> NSUInteger
       where Self: Sized + Message { ... }
}
Available on crate feature MTLAllocation only.
Expand description

Base class for Metal allocations.

This protocol provides a common interface for adding Metal resources to MTLResidencySet instances. Call MTLResidencySet/addAllocation: to add a Metal resource allocation to a residency set.

See also Apple’s documentation

Provided Methods§

Source

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

Trait Implementations§

Source§

impl ProtocolType for dyn MTLAllocation

Source§

const NAME: &'static str = "MTLAllocation"

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 MTLAllocation
where T: ?Sized + Message + MTLAllocation,

Implementations on Foreign Types§

Source§

impl<T> MTLAllocation for ProtocolObject<T>
where T: ?Sized + MTLAllocation,

Implementors§