diff options
author | 2020-02-24 20:08:40 +0100 | |
---|---|---|
committer | 2020-02-24 20:08:40 +0100 | |
commit | be14aca07506385a209e89cd99256744a7ec3c0f (patch) | |
tree | bc05c7179ade80db61a2009239c9f5c9615181b5 /examples/integration | |
parent | e680fd27e754aead4003cae72f401090662851b2 (diff) | |
download | iced-be14aca07506385a209e89cd99256744a7ec3c0f.tar.gz iced-be14aca07506385a209e89cd99256744a7ec3c0f.tar.bz2 iced-be14aca07506385a209e89cd99256744a7ec3c0f.zip |
Make output format of `iced_wgpu` configurable
Diffstat (limited to 'examples/integration')
-rw-r--r-- | examples/integration/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index ed36f736..4be913c1 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -40,11 +40,12 @@ pub fn main() { }); let surface = wgpu::Surface::create(&window); + let format = wgpu::TextureFormat::Bgra8UnormSrgb; let mut swap_chain = { let size = window.inner_size(); - SwapChain::new(&device, &surface, size.width, size.height) + SwapChain::new(&device, &surface, format, size.width, size.height) }; let mut resized = false; @@ -163,6 +164,7 @@ pub fn main() { swap_chain = SwapChain::new( &device, &surface, + format, size.width, size.height, ); |