Skip to content

Commit

Permalink
Merge pull request #126 from Gordon-F/fix_swapchain_usage
Browse files Browse the repository at this point in the history
Fix swapchain usage in wgpu backend
  • Loading branch information
hecrj authored May 10, 2020
2 parents c42d269 + fcccdf0 commit 616ef0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "coffee"
version = "0.4.0"
version = "0.4.1"
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
edition = "2018"
description = "An opinionated 2D game engine focused on simplicity, explicitness, and type-safety"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Add `coffee` as a dependency in your `Cargo.toml` and enable a graphics backend
feature (`opengl`, `vulkan`, `metal`, `dx11`, or `dx12`):

```toml
coffee = { version = "0.4", features = ["opengl"] }
coffee = { version = "0.4.1", features = ["opengl"] }
```

Rust is quite slow in debug mode. If you experience performance issues when
Expand Down
3 changes: 1 addition & 2 deletions src/graphics/backend_wgpu/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ fn new_swap_chain(
let swap_chain = device.create_swap_chain(
surface,
&wgpu::SwapChainDescriptor {
usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT
| wgpu::TextureUsage::COPY_DST,
usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT,
format: wgpu::TextureFormat::Bgra8UnormSrgb,
width: size.width,
height: size.height,
Expand Down

0 comments on commit 616ef0c

Please sign in to comment.