Package: gdk

Accessor gdk:display-dmabuf-formats

Lambda List

gdk:display-dmabuf-formats (object)

Syntax

(gdk:display-dmabuf-formats object) => formats

Arguments

object -- a gdk:display object
formats -- a gdk:dmabuf-formats instance

Details

Returns the dma-buf formats that are supported on the display. GTK may use OpenGL or Vulkan to support some formats. Calling this function will then initialize them if they are not yet.

The formats returned by this function can be used for negotiating buffer formats with producers such as v4l, pipewire or GStreamer. To learn more about dma-buf formats, see the gdk:dmabuf-texture-builder documentation.

Since 4.14
 

See also

2024-11-5