Function egui_wgpu::preferred_framebuffer_format
source · pub fn preferred_framebuffer_format(
formats: &[TextureFormat]
) -> Result<TextureFormat, WgpuError>
Expand description
Find the framebuffer format that egui prefers
§Errors
Returns WgpuError::NoSurfaceFormatsAvailable
if the given list of formats is empty.