fn alloc_gpu_slot(
conn: &Connection,
queue: &mut EventQueue<CaptureState>,
state: &mut CaptureState,
wake: RawFd,
dev: &Device<File>,
dmabuf_global: &ZwpLinuxDmabufV1,
fourcc: u32,
w: i32,
h: i32,
modifiers: &[u64],
) -> Result<Option<SlotBuffer>, String>Expand description
A dmabuf-backed capture slot: a GBM buffer object from pixelflux’s render node,
exported and wrapped in a host wl_buffer. modifiers narrows the allocation to
what the host advertised; empty leaves the driver’s choice, which the host learns
through the params anyway. Ok(None) means the host refused the import (wrong
device, unsupported modifier): the caller degrades to shm slots instead of dying
to the protocol error create_immed would raise.