Struct DmaBufPlane
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Where one plane of a dmabuf keeps its data.
public readonly record struct DmaBufPlane : IEquatable<DmaBufPlane>
- Implements
- Inherited Members
Remarks
See mln_dma_buf_plane in the C API reference.
Constructors
DmaBufPlane(int, uint, uint)
Where one plane of a dmabuf keeps its data.
public DmaBufPlane(int Fd, uint Offset, uint Stride)
Parameters
FdintThe file descriptor of the dmabuf that holds the plane. The planes of a buffer often share one.
OffsetuintThe bytes from the start of the dmabuf to the plane's first byte.
StrideuintThe bytes from the start of one row to the start of the next.
Remarks
See mln_dma_buf_plane in the C API reference.
Properties
Fd
The file descriptor of the dmabuf that holds the plane. The planes of a buffer often share one.
public int Fd { get; init; }
Property Value
Offset
The bytes from the start of the dmabuf to the plane's first byte.
public uint Offset { get; init; }
Property Value
Stride
The bytes from the start of one row to the start of the next.
public uint Stride { get; init; }