mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Upgrade wgpu
This commit is contained in:
parent
1461832df3
commit
a68acbdff3
@ -12,7 +12,7 @@ readme = "../README.md"
|
||||
sqlite = ["rusqlite"]
|
||||
|
||||
[dependencies]
|
||||
naga = { git = "https://github.com/gfx-rs/naga", branch = "master", features = ["wgsl-in"] }
|
||||
naga = { version = "*", features = ["wgsl-in"] }
|
||||
walkdir = "2.3.2"
|
||||
log = "0.4.17"
|
||||
rusqlite = { version = "0.27.0", optional = true }
|
||||
|
||||
@ -51,7 +51,7 @@ geozero = { version = "0.9.5", default-features = false, features = ["with-mvt",
|
||||
tile-grid = "0.3.0"
|
||||
|
||||
# Rendering
|
||||
wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "94ce763" }
|
||||
wgpu = "0.14.0"
|
||||
lyon = { version = "1.0.0", features = [] }
|
||||
raw-window-handle = "0.5.0"
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
//! a handle to a window. A headless surface renders to a texture.
|
||||
|
||||
use std::{mem::size_of, sync::Arc};
|
||||
use wgpu::CompositeAlphaMode;
|
||||
|
||||
use crate::{
|
||||
render::{eventually::HasChanged, resource::texture::TextureView, settings::RendererSettings},
|
||||
@ -133,6 +134,7 @@ impl Surface {
|
||||
{
|
||||
let size = window.size();
|
||||
let surface_config = wgpu::SurfaceConfiguration {
|
||||
alpha_mode: CompositeAlphaMode::Auto,
|
||||
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
|
||||
format: settings.texture_format,
|
||||
width: size.width(),
|
||||
|
||||
@ -27,7 +27,7 @@ rand = { version = "0.7", features = ["wasm-bindgen"] }
|
||||
|
||||
console_error_panic_hook = "0.1.7"
|
||||
# Exact version requirement can be removed as soon as https://github.com/gfx-rs/wgpu/pull/2954 is merged
|
||||
web-sys = { version = "=0.3.58", features = [
|
||||
web-sys = { version = "0.3.58", features = [
|
||||
"Window",
|
||||
"Worker", "WorkerGlobalScope", "DedicatedWorkerGlobalScope", "MessageEvent",
|
||||
"Request", "RequestInit", "RequestMode", "Response", "Headers",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user