wgpu: Use the preferred texture format of the surface
Signed-off-by: Tilmann Meyer <me@atiltedtree.dev>
This commit is contained in:
parent
a08e4ebccb
commit
d7975a9de5
4 changed files with 37 additions and 33 deletions
|
|
@ -6,11 +6,6 @@ pub use crate::Antialiasing;
|
|||
/// [`Backend`]: crate::Backend
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Settings {
|
||||
/// The output format of the [`Backend`].
|
||||
///
|
||||
/// [`Backend`]: crate::Backend
|
||||
pub format: wgpu::TextureFormat,
|
||||
|
||||
/// The present mode of the [`Backend`].
|
||||
///
|
||||
/// [`Backend`]: crate::Backend
|
||||
|
|
@ -68,7 +63,6 @@ impl Settings {
|
|||
impl Default for Settings {
|
||||
fn default() -> Settings {
|
||||
Settings {
|
||||
format: wgpu::TextureFormat::Bgra8UnormSrgb,
|
||||
present_mode: wgpu::PresentMode::Mailbox,
|
||||
internal_backend: wgpu::BackendBit::PRIMARY,
|
||||
default_font: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue