Crate gbm_rs

Source
Expand description

An interface to libgbm, a generic buffer manager for Linux which is provided by Mesa.

Libgbm can be used to retrieve framebuffers from GPUs in a driver-independant manner.

Modules§

format
Formats

Structs§

BufferObject
Analogous to gbm_bo
Device
Analogous to gbm_device.
Surface
Analogous to gbm_surface

Enums§

gbm_bo
Representation of C opaque structure to use in foreign C functions
gbm_device
Representation of C opaque structure to use in foreign C functions
gbm_surface
Representation of C opaque structure to use in foreign C functions

Constants§

USE_CURSOR
Buffer is going to be used as cursor
USE_RENDERING
Buffer is to be used for rendering - for example it is going to be used as the storage for a color buffer
USE_SCANOUT
Buffer is going to be presented to the screen using an API such as KMS
USE_WRITE
Buffer can be used for BufferObject::write. This is guaranteed to work with USE_CURSOR, but may not work for other combinations