#[repr(C)]pub struct EfTensorPlane {
pub handle: i64,
pub offset: u64,
pub stride: u64,
pub size: u64,
pub used: u64,
pub modifier: u64,
}Expand description
One plane’s location, mirroring TensorPlane on the wire.
The route by which one library consumes a tensor another minted: the Rust
types are not shared across .so boundaries, so the planes are the
interface. Emitted into edgefirst/tensor.h as ef_tensor_plane by
cbindgen.
Fields§
§handle: i64dma-buf fd, IOSurface id, or -1 when host memory.
offset: u64Byte offset of this plane within the handle.
stride: u64Bytes per line.
size: u64Plane extent in bytes.
used: u64Valid payload bytes.
modifier: u64DRM format modifier; 0 = linear.
Trait Implementations§
Source§impl Clone for EfTensorPlane
impl Clone for EfTensorPlane
impl Copy for EfTensorPlane
Source§impl Debug for EfTensorPlane
impl Debug for EfTensorPlane
Auto Trait Implementations§
impl Freeze for EfTensorPlane
impl RefUnwindSafe for EfTensorPlane
impl Send for EfTensorPlane
impl Sync for EfTensorPlane
impl Unpin for EfTensorPlane
impl UnsafeUnpin for EfTensorPlane
impl UnwindSafe for EfTensorPlane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more