[][src]Function wayland_raw_protocol_bindings::client::zwp_linux_explicit_synchronization_unstable_v1::zwp_linux_surface_synchronization_v1::zwp_linux_surface_synchronization_v1_set_acquire_fence

pub unsafe fn zwp_linux_surface_synchronization_v1_set_acquire_fence(
    zwp_linux_surface_synchronization_v1: *mut zwp_linux_surface_synchronization_v1,
    fd: RawFd
)

set the acquire fence

Set the acquire fence that must be signaled before the compositor may sample from the buffer attached with wl_surface.attach. The fence is a dma_fence kernel object.

The acquire fence is double-buffered state, and will be applied on the next wl_surface.commit request for the associated surface. Thus, it applies only to the buffer that is attached to the surface at commit time.

If the provided fd is not a valid dma_fence fd, then an INVALID_FENCE error is raised.

If a fence has already been attached during the same commit cycle, a DUPLICATE_FENCE error is raised.

If the associated wl_surface was destroyed, a NO_SURFACE error is raised.

If at surface commit time the attached buffer does not support explicit synchronization, an UNSUPPORTED_BUFFER error is raised.

If at surface commit time there is no buffer attached, a NO_BUFFER error is raised.