Inherits Reference < Object
Wraps a Metal buffer with automatic resource management Uses MTLResourceStorageModeShared for unified memory on M-series chips
Wrap existing Array without copy (zero-copy)
Wrap existing Slice
Get raw pointer for Metal kernel bindings
Copy from another buffer
Element count (assuming Float32)
RAII cleanup
Get underlying handle for FFI
Read data from buffer
Read raw bytes from buffer
Manual release (for explicit control)
Synchronize (for Managed mode on macOS)
Write data to buffer
Write raw bytes to buffer