Skip to main content

set_output_format

Function set_output_format 

Source
pub fn set_output_format(format: TextureFormat) -> bool
Available on crate feature gpu only.
Expand description

Set the host’s wgpu surface format. Returns whether the format is supported.

Call before the first plot frame. Supported: Bgra8UnormSrgb (default), Rgba8UnormSrgb, Bgra8Unorm, and Rgba8Unorm.