bite-gp-linux 1.23.300

gpui_linux — part of the bite-gpui rearchitecture of zed's gpui
Documentation
#![cfg(any(target_os = "linux", target_os = "freebsd"))]
mod linux;

pub use linux::current_platform;

/// The producer's half of the imported-texture path where wgpu is the renderer, which on Linux is the default one.
/// Re-exported here for the same reason gpui_macos re-exports Metal's: this is the crate an
/// application already reaches the platform through, so it does not have to know that the renderer
/// lives in a crate of its own.
#[cfg(any(feature = "wayland", feature = "x11"))]
pub use gpui_wgpu::ImportedTextureExt;

/// The headless renderer, so `gpui::current_headless_renderer` can build one on this platform the way
/// it builds Metal's on macOS. The Linux platform owns no renderer of its own; wgpu is the renderer a
/// window uses here, so a headless context renders through the same code.
#[cfg(all(
    feature = "gpui_wgpu",
    any(feature = "bench-support", feature = "test-support")
))]
pub use gpui_wgpu::WgpuHeadlessRenderer;

/// The Linux surface transport, re-exported so an application reaches it through the platform crate
/// it already depends on rather than through the engine.
#[cfg(target_os = "linux")]
pub use gpui_engine::{DmaBufHandle, DmaBufPlane, SurfaceFormat};