Skip to content

Commit

Permalink
Rebase + update to new wgpu version.
Browse files Browse the repository at this point in the history
  • Loading branch information
bungoboingo committed Apr 11, 2023
1 parent e6ba833 commit 72c21ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions wgpu/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl Backend {
format: wgpu::TextureFormat::Rgba8Unorm,
usage: wgpu::TextureUsages::STORAGE_BINDING
| wgpu::TextureUsages::COPY_SRC,
view_formats: &[],
});

let view =
Expand Down
1 change: 1 addition & 0 deletions wgpu/src/window/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ pub fn screenshot<Theme, T: AsRef<str>>(
usage: wgpu::TextureUsages::RENDER_ATTACHMENT
| wgpu::TextureUsages::COPY_SRC
| wgpu::TextureUsages::TEXTURE_BINDING,
view_formats: &[],
});

let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
Expand Down

0 comments on commit 72c21ce

Please sign in to comment.