Skip to main content

egui_wgpu_config

Function egui_wgpu_config 

Source
pub fn egui_wgpu_config() -> WgpuConfiguration
Expand description

Creates an egui_wgpu::WgpuConfiguration for video rendering.

On Linux, this builds a Vulkan device and enables wgpu::Features::VULKAN_EXTERNAL_MEMORY_DMA_BUF if the adapter supports it. The renderer can then import DMA-BUF frames, such as PipeWire screen capture, without a copy through the CPU. It blocks while it requests the adapter and device.

Elsewhere, or if Vulkan is not available or excluded by WGPU_BACKEND, egui builds the device and the renderer uploads frames from the CPU. The device always requests the adapter’s own limits.