Update wgpu to 28

This commit is contained in:
Héctor Ramón Jiménez 2026-01-20 02:01:42 +01:00
parent 0e025ed813
commit 3836ca7a17
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ repository = "https://github.com/iced-rs/cryoglyph"
license = "MIT OR Apache-2.0 OR Zlib" license = "MIT OR Apache-2.0 OR Zlib"
[dependencies] [dependencies]
wgpu = { version = "27", default-features = false, features = ["wgsl"] } wgpu = { version = "28", default-features = false, features = ["wgsl"] }
etagere = "0.2" etagere = "0.2"
cosmic-text = "0.16" cosmic-text = "0.16"
lru = { version = "0.16", default-features = false } lru = { version = "0.16", default-features = false }

View file

@ -213,6 +213,7 @@ impl winit::application::ApplicationHandler for Application {
depth_stencil_attachment: None, depth_stencil_attachment: None,
timestamp_writes: None, timestamp_writes: None,
occlusion_query_set: None, occlusion_query_set: None,
multiview_mask: None,
}); });
text_renderer.render(&atlas, &viewport, &mut pass).unwrap(); text_renderer.render(&atlas, &viewport, &mut pass).unwrap();

View file

@ -42,7 +42,7 @@ impl Cache {
label: Some("glyphon sampler"), label: Some("glyphon sampler"),
min_filter: FilterMode::Nearest, min_filter: FilterMode::Nearest,
mag_filter: FilterMode::Nearest, mag_filter: FilterMode::Nearest,
mipmap_filter: FilterMode::Nearest, mipmap_filter: wgpu::MipmapFilterMode::Nearest,
lod_min_clamp: 0f32, lod_min_clamp: 0f32,
lod_max_clamp: 0f32, lod_max_clamp: 0f32,
..Default::default() ..Default::default()
@ -139,7 +139,7 @@ impl Cache {
let pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor { let pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor {
label: None, label: None,
bind_group_layouts: &[&atlas_layout, &uniforms_layout], bind_group_layouts: &[&atlas_layout, &uniforms_layout],
push_constant_ranges: &[], immediate_size: 0,
}); });
Self(Arc::new(Inner { Self(Arc::new(Inner {
@ -237,7 +237,7 @@ impl Cache {
}, },
depth_stencil: depth_stencil.clone(), depth_stencil: depth_stencil.clone(),
multisample, multisample,
multiview: None, multiview_mask: None,
cache: None, cache: None,
}); });

View file

@ -39,7 +39,7 @@ impl TextRenderer {
let pipeline = atlas.get_or_create_pipeline(device, multisample, depth_stencil); let pipeline = atlas.get_or_create_pipeline(device, multisample, depth_stencil);
Self { Self {
staging_belt: StagingBelt::new(vertex_buffer_size), staging_belt: StagingBelt::new(device.clone(), vertex_buffer_size),
vertex_buffer, vertex_buffer,
vertex_buffer_size, vertex_buffer_size,
pipeline, pipeline,
@ -295,7 +295,6 @@ impl TextRenderer {
&self.vertex_buffer, &self.vertex_buffer,
0, 0,
NonZeroU64::new(vertices_raw.len() as u64).expect("Non-empty vertices"), NonZeroU64::new(vertices_raw.len() as u64).expect("Non-empty vertices"),
device,
) )
.copy_from_slice(vertices_raw); .copy_from_slice(vertices_raw);
} else { } else {
@ -312,7 +311,7 @@ impl TextRenderer {
self.vertex_buffer_size = buffer_size; self.vertex_buffer_size = buffer_size;
self.staging_belt.finish(); self.staging_belt.finish();
self.staging_belt = StagingBelt::new(buffer_size); self.staging_belt = StagingBelt::new(device.clone(), buffer_size);
} }
self.staging_belt.finish(); self.staging_belt.finish();