get_dmabuf_formats


Description:

[ Version ( since = "4.14" ) ]
public unowned DmabufFormats get_dmabuf_formats ()

Returns the dma-buf formats that are supported on this display.

GTK may use OpenGL or Vulkan to support some formats. Calling this function will then initialize them if they aren't 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-bufs, see [class@Gdk.DmabufTextureBuilder].

Parameters:

this

a `GdkDisplay`

Returns:

a `GdkDmabufFormats` object