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