Function render_target_format
pub fn render_target_format(fourcc: u32) -> Option<(Format, TextureFormat, u32)>Expand description
The scanout formats the compositor renders into, with the Vulkan and wgpu formats that describe the same bytes and the bytes per pixel.
DRM names formats by little-endian word order: XR24 is B,G,R,X in
memory (Vulkan B8G8R8A8), XB30 packs red into the low ten bits of a
word (Vulkan A2B10G10R10_PACK32, wgpu Rgb10a2Unorm), and AB4H stores
half-float red first (Vulkan R16G16B16A16_SFLOAT).