Merge branch 'master' into advanced-text
This commit is contained in:
commit
8e8808f0e1
12 changed files with 173 additions and 70 deletions
|
|
@ -13,7 +13,7 @@ image = ["iced_graphics/image"]
|
|||
svg = ["resvg"]
|
||||
|
||||
[dependencies]
|
||||
wgpu = "0.15"
|
||||
wgpu = "0.16"
|
||||
raw-window-handle = "0.5"
|
||||
log = "0.4"
|
||||
guillotiere = "0.6"
|
||||
|
|
@ -23,7 +23,7 @@ once_cell = "1.0"
|
|||
rustc-hash = "1.1"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wgpu = { version = "0.15", features = ["webgl"] }
|
||||
wgpu = { version = "0.16", features = ["webgl"] }
|
||||
|
||||
[dependencies.twox-hash]
|
||||
version = "1.6"
|
||||
|
|
@ -44,7 +44,7 @@ path = "../graphics"
|
|||
[dependencies.glyphon]
|
||||
version = "0.2"
|
||||
git = "https://github.com/hecrj/glyphon.git"
|
||||
rev = "504aa8a9a1fb42726f02fa244b70119e7ca25933"
|
||||
rev = "f145067d292082abdd1f2b2481812d4a52c394ec"
|
||||
|
||||
[dependencies.encase]
|
||||
version = "0.3.0"
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ pub const SIZE: u32 = 2048;
|
|||
|
||||
use crate::core::Size;
|
||||
|
||||
use std::num::NonZeroU32;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Atlas {
|
||||
texture: wgpu::Texture,
|
||||
|
|
@ -308,8 +306,8 @@ impl Atlas {
|
|||
data,
|
||||
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),
|
||||
},
|
||||
extent,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -72,9 +72,8 @@ impl<Theme> Compositor<Theme> {
|
|||
capabilities
|
||||
.formats
|
||||
.iter()
|
||||
.filter(|format| format.describe().srgb)
|
||||
.copied()
|
||||
.next()
|
||||
.find(wgpu::TextureFormat::is_srgb)
|
||||
.or_else(|| {
|
||||
log::warn!("No sRGB format found!");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue