Crate gbm [−] [src]
Safe libgbm bindings for rust
The Generic Buffer Manager
This module provides an abstraction that the caller can use to request a buffer from the underlying memory management system for the platform.
This allows the creation of portable code whilst still allowing access to the underlying memory manager.
Structs
| BufferObject |
A gbm buffer object |
| Device |
An open DRM device |
| MappedBufferObject |
A read-only mapped buffer object |
| MappedBufferObjectRW |
A read-write mapped buffer object |
| Surface |
A gbm rendering surface |
| SurfaceBufferHandle |
Handle to a front buffer of a surface |
Enums
| BufferObjectFlags |
Flags to indicate the intended use for the buffer - these are passed into
|
| BufferObjectTransferFlags |
Flags to indicate the type of mapping for the buffer - these are
passed into |
| Format |
Possible pixel formats used |
| FrontBufferError |
Errors that may happen when locking the front buffer |
Traits
| AsRaw |
Trait for types that allow to optain the underlying raw libinput pointer. |
| FromRaw |
Trait for types that allow to be initialized from a raw pointer |
| ReadableMappedBufferObject |
Common functionality for all mapped buffer objects |
| WritableMappedBufferObject |
Common functionality for all writable mapped buffer objects |
Type Definitions
| BufferObjectHandle |
Abstraction representing the handle to a buffer allocated by the manager |