From d31cec2825288983b2aef8e6265cb2298d2e08b5 Mon Sep 17 00:00:00 2001 From: Gordon-F Date: Sun, 10 May 2020 11:44:14 +0300 Subject: [PATCH 1/2] fix swapchain usage in wgpu backend --- src/graphics/backend_wgpu/surface.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphics/backend_wgpu/surface.rs b/src/graphics/backend_wgpu/surface.rs index d823781..c2363b5 100644 --- a/src/graphics/backend_wgpu/surface.rs +++ b/src/graphics/backend_wgpu/surface.rs @@ -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, From fcccdf0d98da9ddac3d0b350708bf7da017c76b6 Mon Sep 17 00:00:00 2001 From: Gordon-F Date: Sun, 10 May 2020 11:44:57 +0300 Subject: [PATCH 2/2] bump version --- Cargo.toml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0909b9e..81a715d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coffee" -version = "0.4.0" +version = "0.4.1" authors = ["Héctor Ramón Jiménez "] edition = "2018" description = "An opinionated 2D game engine focused on simplicity, explicitness, and type-safety" diff --git a/README.md b/README.md index e7c5205..31d5abb 100644 --- a/README.md +++ b/README.md @@ -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