wgpu 0.16
This commit is contained in:
parent
99fc717b7c
commit
8122904ca4
4 changed files with 6 additions and 7 deletions
|
|
@ -209,8 +209,8 @@ impl Atlas {
|
|||
buffer,
|
||||
layout: wgpu::ImageDataLayout {
|
||||
offset: offset as u64,
|
||||
bytes_per_row: NonZeroU32::new(4 * image_width + padding),
|
||||
rows_per_image: NonZeroU32::new(image_height),
|
||||
bytes_per_row: Some(4 * image_width + padding),
|
||||
rows_per_image: Some(image_height),
|
||||
},
|
||||
},
|
||||
wgpu::ImageCopyTexture {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ impl<Theme> Compositor<Theme> {
|
|||
capabilities
|
||||
.formats
|
||||
.iter()
|
||||
.filter(|format| format.describe().srgb)
|
||||
.filter(|format| format.is_srgb())
|
||||
.copied()
|
||||
.next()
|
||||
.or_else(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue