[][src]Trait wayland_raw_protocol_bindings::client::zwp_linux_explicit_synchronization_unstable_v1::zwp_linux_buffer_release_v1::zwp_linux_buffer_release_v1_listener

pub trait zwp_linux_buffer_release_v1_listener {
    fn fenced_release(
        &mut self,
        object: *mut zwp_linux_buffer_release_v1,
        fence: RawFd
    ) { ... }
fn immediate_release(&mut self, object: *mut zwp_linux_buffer_release_v1) { ... } }

An interface for handling events.

Provided methods

fn fenced_release(
    &mut self,
    object: *mut zwp_linux_buffer_release_v1,
    fence: RawFd
)

release buffer with fence

Sent when the compositor has finalised its usage of the associated buffer for the relevant commit, providing a dma_fence which will be signaled when all operations by the compositor on that buffer for that commit have finished.

Once the fence has signaled, and assuming the associated buffer is not pending release from other wl_surface.commit requests, no additional explicit or implicit synchronization is required to safely reuse or destroy the buffer.

This event destroys the zwp_linux_buffer_release_v1 object.

fn immediate_release(&mut self, object: *mut zwp_linux_buffer_release_v1)

release buffer immediately

Sent when the compositor has finalised its usage of the associated buffer for the relevant commit, and either performed no operations using it, or has a guarantee that all its operations on that buffer for that commit have finished.

Once this event is received, and assuming the associated buffer is not pending release from other wl_surface.commit requests, no additional explicit or implicit synchronization is required to safely reuse or destroy the buffer.

This event destroys the zwp_linux_buffer_release_v1 object.

Loading content...

Implementors

Loading content...