[][src]Module wayland_protocols::unstable::linux_dmabuf::v1::client::zwp_linux_dmabuf_v1

factory for creating dmabuf-based wl_buffers

Following the interfaces from: https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_image_dma_buf_import.txt and the Linux DRM sub-system's AddFb2 ioctl.

This interface offers ways to create generic dmabuf-based wl_buffers. Immediately after a client binds to this interface, the set of supported formats and format modifiers is sent with 'format' and 'modifier' events.

The following are required from clients:

The underlying graphics stack must ensure the following:

To create a wl_buffer from one or more dmabufs, a client creates a zwp_linux_dmabuf_params_v1 object with a zwp_linux_dmabuf_v1.create_params request. All planes required by the intended format are added with the 'add' request. Finally, a 'create' or 'create_immed' request is issued, which has the following outcome depending on the import success.

The 'create' request,

For the 'create_immed' request,

Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset.

Structs

ZwpLinuxDmabufV1

Enums

Event
Request

Constants

EVT_FORMAT_SINCE

The minimal object version supporting this event

EVT_MODIFIER_SINCE

The minimal object version supporting this event

REQ_CREATE_PARAMS_SINCE

The minimal object version supporting this request

REQ_DESTROY_SINCE

The minimal object version supporting this request

Statics

zwp_linux_dmabuf_v1_events

C-representation of the messages of this interface, for interop

zwp_linux_dmabuf_v1_interface

C representation of this interface, for interop

zwp_linux_dmabuf_v1_requests

C-representation of the messages of this interface, for interop

Traits

EventHandler

An interface for handling events.