Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + type ARect = capi.ARect + type Buffer struct + func NewBufferFromPointer(ptr unsafe.Pointer) *Buffer + func (h *Buffer) Acquire() + func (h *Buffer) Close() error + func (h *Buffer) GetID(outID *uint64) error + func (h *Buffer) LockPlanes(usage uint64, fence int32, rect *ARect, outPlanes *HardwareBuffer_Planes) error + func (h *Buffer) Pointer() unsafe.Pointer + func (h *Buffer) SendHandleToUnixSocket(socketFd int32) error + func (h *Buffer) Unlock(fence *int32) error + type Error int32 + func (e Error) Error() string + type Format int32 + const Blob + const D16Unorm + const D24Unorm + const D24UnormS8Uint + const D32Float + const D32FloatS8Uint + const R10g10b10a10Unorm + const R10g10b10a2Unorm + const R16Uint + const R16g16Uint + const R16g16b16a16Float + const R5g6b5Unorm + const R8Unorm + const R8g8b8Unorm + const R8g8b8a8Unorm + const R8g8b8x8Unorm + const S8Uint + const Y8cb8cr8420 + const YcbcrP010 + const YcbcrP210 + func (v Format) String() string + type HardwareBuffer_Desc struct + func NewHardwareBuffer_DescFromPointer(ptr unsafe.Pointer) *HardwareBuffer_Desc + func (h *HardwareBuffer_Desc) Pointer() unsafe.Pointer + type HardwareBuffer_Plane struct + func NewHardwareBuffer_PlaneFromPointer(ptr unsafe.Pointer) *HardwareBuffer_Plane + func (h *HardwareBuffer_Plane) Pointer() unsafe.Pointer + type HardwareBuffer_Planes struct + func NewHardwareBuffer_PlanesFromPointer(ptr unsafe.Pointer) *HardwareBuffer_Planes + func (h *HardwareBuffer_Planes) Pointer() unsafe.Pointer + type Usage uint64 + const ComposerOverlay + const CpuReadMask + const CpuReadNever + const CpuReadOften + const CpuReadRarely + const CpuWriteMask + const CpuWriteNever + const CpuWriteOften + const CpuWriteRarely + const FrontBuffer + const GpuColorOutput + const GpuCubeMap + const GpuDataBuffer + const GpuFramebuffer + const GpuMipmapComplete + const GpuSampledImage + const ProtectedContent + const SensorDirectData + const Vendor0 + const Vendor1 + const Vendor10 + const Vendor11 + const Vendor12 + const Vendor13 + const Vendor14 + const Vendor15 + const Vendor16 + const Vendor17 + const Vendor18 + const Vendor19 + const Vendor2 + const Vendor3 + const Vendor4 + const Vendor5 + const Vendor6 + const Vendor7 + const Vendor8 + const Vendor9 + const VideoEncode