nuvec-gpu 0.1.0

Metal backend for nuvec: device, command encoding, memory and kernel dispatch
Documentation
//! Allocator statistics (shared by every target).

/// Memory use and limits of a device's allocator, in bytes.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct MemoryStats {
    /// Bytes in live buffers (rounded allocation sizes).
    pub active: usize,
    /// Highest `active` since creation or the last `Device::reset_peak`.
    pub peak: usize,
    /// Bytes held in the cache for reuse.
    pub cache: usize,
    /// Allocations that would push `active` past this fail.
    pub memory_limit: usize,
    /// The cache is trimmed to at most this many bytes.
    pub cache_limit: usize,
    /// Buffers obtained from Metal (cache misses) so far.
    pub system_allocations: u64,
    /// Buffers are kept resident up to this many bytes (see
    /// `Device::set_wired_limit`).
    pub wired_limit: usize,
    /// Bytes currently wired.
    pub wired: usize,
}