Expand description
Allocation protocol.
Corresponds to Metal/MTLAllocation.hpp.
This module defines the Allocation trait which corresponds to the
MTL::Allocation protocol in metal-cpp. Resource types like Buffer,
Texture, and Heap already have allocated_size() as an inherent method,
so this trait serves primarily for documentation and generic programming.
Traitsยง
- Allocation
- Protocol for types that track their allocated memory size.