Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Upgrade wgpu (#772)

Oscar Beaumonte473631d4024
diff --git a/Cargo.lock b/Cargo.lock
index dea7ac670..6da168520 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -678,18 +678,18 @@ dependencies = [
[[package]]
name = "bit-set"
-version = "0.6.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0481a0e032742109b1133a095184ee93d88f3dc9e0d28a5d033dc77a073f44f"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
dependencies = [
"bit-vec",
]
[[package]]
name = "bit-vec"
-version = "0.7.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2c54ff287cfc0a34f38a6b832ea1bd8e448a330b3e40a50859e6488bee07f22"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
[[package]]
name = "bit_field"
@@ -1176,7 +1176,7 @@ dependencies = [
"futures",
"gif",
"image 0.25.5",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"nokhwa",
"nokhwa-bindings-macos",
"num-traits",
@@ -1416,12 +1416,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
-[[package]]
-name = "cfg_aliases"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
-
[[package]]
name = "cfg_aliases"
version = "0.2.1"
@@ -1650,10 +1644,11 @@ dependencies = [
[[package]]
name = "codespan-reporting"
-version = "0.11.1"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
+checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
dependencies = [
+ "serde",
"termcolor",
"unicode-width",
]
@@ -1670,37 +1665,6 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
-[[package]]
-name = "com"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e17887fd17353b65b1b2ef1c526c83e26cd72e74f598a8dc1bee13a48f3d9f6"
-dependencies = [
- "com_macros",
-]
-
-[[package]]
-name = "com_macros"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d375883580a668c7481ea6631fc1a8863e33cc335bf56bfad8d7e6d4b04b13a5"
-dependencies = [
- "com_macros_support",
- "proc-macro2",
- "syn 1.0.109",
-]
-
-[[package]]
-name = "com_macros_support"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad899a1087a9296d5644792d7cb72b8e34c1bec8e7d4fbc002230169a6e8710c"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 1.0.109",
-]
-
[[package]]
name = "combine"
version = "4.6.7"
@@ -1999,18 +1963,18 @@ dependencies = [
[[package]]
name = "cosmic-text"
-version = "0.12.1"
+version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59fd57d82eb4bfe7ffa9b1cec0c05e2fd378155b47f255a67983cb4afe0e80c2"
+checksum = "da46a9d5a8905cc538a4a5bceb6a4510de7a51049c5588c0114efce102bcbbe8"
dependencies = [
"bitflags 2.9.0",
"fontdb",
"log",
"rangemap",
- "rayon",
"rustc-hash 1.1.0",
"rustybuzz",
"self_cell",
+ "smol_str",
"swash",
"sys-locale",
"ttf-parser 0.21.1",
@@ -2221,17 +2185,6 @@ dependencies = [
"windows-sys 0.59.0",
]
-[[package]]
-name = "d3d12"
-version = "22.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bdbd1f579714e3c809ebd822c81ef148b1ceaeb3d535352afc73fd0c4c6a0017"
-dependencies = [
- "bitflags 2.9.0",
- "libloading 0.8.5",
- "winapi",
-]
-
[[package]]
name = "darling"
version = "0.20.10"
@@ -2466,9 +2419,9 @@ dependencies = [
[[package]]
name = "document-features"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb6969eaabd2421f8a2775cfd2471a2b634372b4a25d41e3bd647b79912850a0"
+checksum = "95249b50c6c185bee49034bcb378a49dc2b5dff0be90ff6616d31d64febab05d"
dependencies = [
"litrs",
]
@@ -2829,11 +2782,17 @@ version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
[[package]]
name = "font-types"
-version = "0.7.3"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3971f9a5ca983419cdc386941ba3b9e1feba01a0ab888adf78739feb2798492"
+checksum = "02a596f5713680923a2080d86de50fe472fb290693cf0f701187a1c8b36996b7"
dependencies = [
"bytemuck",
]
@@ -3367,9 +3326,9 @@ dependencies = [
[[package]]
name = "glow"
-version = "0.13.1"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd348e04c43b32574f2de31c8bb397d96c9fcfa1371bd4ca6d8bdc464ab121b1"
+checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08"
dependencies = [
"js-sys",
"slotmap",
@@ -3388,9 +3347,9 @@ dependencies = [
[[package]]
name = "glyphon"
-version = "0.6.0"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b11b1afb04c1a1be055989042258499473d0a9447f16450b433aba10bc2a46e7"
+checksum = "5c6a289ad2a23656ccf4306fc818cef6776471a136d909123fd26c0f2ecb44ba"
dependencies = [
"cosmic-text",
"etagere",
@@ -3431,15 +3390,14 @@ dependencies = [
[[package]]
name = "gpu-allocator"
-version = "0.26.0"
+version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fdd4240fc91d3433d5e5b0fc5b67672d771850dc19bbee03c1381e19322803d7"
+checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd"
dependencies = [
"log",
"presser",
"thiserror 1.0.69",
- "winapi",
- "windows 0.52.0",
+ "windows 0.58.0",
]
[[package]]
@@ -3532,7 +3490,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"slab",
"tokio",
"tokio-util",
@@ -3547,6 +3505,7 @@ checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
dependencies = [
"cfg-if 1.0.0",
"crunchy",
+ "num-traits",
]
[[package]]
@@ -3566,18 +3525,12 @@ dependencies = [
]
[[package]]
-name = "hassle-rs"
-version = "0.11.0"
+name = "hashbrown"
+version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af2a7e73e1f34c48da31fb668a907f250794837e08faa144fd24f0b8b741e890"
+checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
dependencies = [
- "bitflags 2.9.0",
- "com",
- "libc",
- "libloading 0.8.5",
- "thiserror 1.0.69",
- "widestring",
- "winapi",
+ "foldhash",
]
[[package]]
@@ -3931,12 +3884,12 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.5.0"
+version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5"
+checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
dependencies = [
"equivalent",
- "hashbrown 0.14.5",
+ "hashbrown 0.15.4",
"serde",
]
@@ -4180,7 +4133,7 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ee7893dab2e44ae5f9d0173f26ff4aa327c10b01b06a72b52dd9405b628640d"
dependencies = [
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
]
[[package]]
@@ -4574,9 +4527,9 @@ dependencies = [
[[package]]
name = "metal"
-version = "0.29.0"
+version = "0.31.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ecfd3296f8c56b7c1f6fbac3c71cefa9d78ce009850c45000015f206dc7fa21"
+checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e"
dependencies = [
"bitflags 2.9.0",
"block",
@@ -4720,23 +4673,27 @@ dependencies = [
[[package]]
name = "naga"
-version = "22.1.0"
+version = "25.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bd5a652b6faf21496f2cfd88fc49989c8db0825d1f6746b1a71a6ede24a63ad"
+checksum = "2b977c445f26e49757f9aca3631c3b8b836942cb278d69a92e7b80d3b24da632"
dependencies = [
"arrayvec",
"bit-set",
"bitflags 2.9.0",
- "cfg_aliases 0.1.1",
+ "cfg_aliases",
"codespan-reporting",
+ "half",
+ "hashbrown 0.15.4",
"hexf-parse",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"log",
+ "num-traits",
+ "once_cell",
"rustc-hash 1.1.0",
"spirv",
- "termcolor",
- "thiserror 1.0.69",
- "unicode-xid",
+ "strum",
+ "thiserror 2.0.12",
+ "unicode-ident",
]
[[package]]
@@ -4861,7 +4818,7 @@ checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
"bitflags 2.9.0",
"cfg-if 1.0.0",
- "cfg_aliases 0.2.1",
+ "cfg_aliases",
"libc",
"memoffset",
]
@@ -5048,6 +5005,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
+ "libm",
]
[[package]]
@@ -5428,9 +5386,9 @@ dependencies = [
[[package]]
name = "once_cell"
-version = "1.21.2"
+version = "1.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2806eaa3524762875e21c3dcd057bc4b7bfa01ce4da8d46be1cd43649e1cc6b"
+checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "open"
@@ -5499,6 +5457,15 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c04f5d74368e4d0dfe06c45c8627c81bd7c317d52762d118fb9b3076f6420fd"
+[[package]]
+name = "ordered-float"
+version = "4.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"
+dependencies = [
+ "num-traits",
+]
+
[[package]]
name = "ordered-multimap"
version = "0.7.3"
@@ -5856,7 +5823,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"
dependencies = [
"base64 0.22.1",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"quick-xml 0.32.0",
"serde",
"time",
@@ -6340,9 +6307,9 @@ dependencies = [
[[package]]
name = "read-fonts"
-version = "0.22.7"
+version = "0.29.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69aacb76b5c29acfb7f90155d39759a29496aebb49395830e928a9703d2eec2f"
+checksum = "04ca636dac446b5664bd16c069c00a9621806895b8bb02c2dc68542b23b8f25d"
dependencies = [
"bytemuck",
"font-types",
@@ -7089,7 +7056,7 @@ dependencies = [
"chrono",
"hex",
"indexmap 1.9.3",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"serde",
"serde_derive",
"serde_json",
@@ -7275,9 +7242,9 @@ dependencies = [
[[package]]
name = "skrifa"
-version = "0.22.3"
+version = "0.31.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e1c44ad1f6c5bdd4eefed8326711b7dbda9ea45dfd36068c427d332aa382cbe"
+checksum = "dbeb4ca4399663735553a09dd17ce7e49a0a0203f03b706b39628c4d913a8607"
dependencies = [
"bytemuck",
"read-fonts",
@@ -7307,6 +7274,12 @@ version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
+[[package]]
+name = "smol_str"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
+
[[package]]
name = "socket2"
version = "0.5.7"
@@ -7324,7 +7297,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d623bff5d06f60d738990980d782c8c866997d9194cfe79ecad00aa2f76826dd"
dependencies = [
"bytemuck",
- "cfg_aliases 0.2.1",
+ "cfg_aliases",
"core-graphics 0.23.2",
"foreign-types 0.5.0",
"js-sys",
@@ -7480,6 +7453,28 @@ version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+[[package]]
+name = "strum"
+version = "0.26.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.26.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "rustversion",
+ "syn 2.0.90",
+]
+
[[package]]
name = "subtle"
version = "2.6.1"
@@ -7494,9 +7489,9 @@ checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb"
[[package]]
name = "swash"
-version = "0.1.19"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cbd59f3f359ddd2c95af4758c18270eddd9c730dde98598023cdabff472c2ca2"
+checksum = "f745de914febc7c9ab4388dfaf94bbc87e69f57bb41133a9b0c84d4be49856f3"
dependencies = [
"skrifa",
"yazi",
@@ -8601,7 +8596,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"toml_datetime",
"winnow 0.5.40",
]
@@ -8612,7 +8607,7 @@ version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
dependencies = [
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"toml_datetime",
"winnow 0.5.40",
]
@@ -8623,7 +8618,7 @@ version = "0.22.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02a8b472d1a3d7c18e2d61a489aee3453fd9031c33e4f55bd533f4a7adca1bee"
dependencies = [
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"serde",
"serde_spanned",
"toml_datetime",
@@ -8956,12 +8951,6 @@ version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
-[[package]]
-name = "unicode-xid"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
-
[[package]]
name = "untrusted"
version = "0.9.0"
@@ -9399,17 +9388,20 @@ checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"
[[package]]
name = "wgpu"
-version = "22.1.0"
+version = "25.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1d1c4ba43f80542cf63a0a6ed3134629ae73e8ab51e4b765a67f3aa062eb433"
+checksum = "ec8fb398f119472be4d80bc3647339f56eb63b2a331f6a3d16e25d8144197dd9"
dependencies = [
"arrayvec",
- "cfg_aliases 0.1.1",
+ "bitflags 2.9.0",
+ "cfg_aliases",
"document-features",
+ "hashbrown 0.15.4",
"js-sys",
"log",
"naga",
"parking_lot",
+ "portable-atomic",
"profiling",
"raw-window-handle",
"smallvec",
@@ -9424,34 +9416,67 @@ dependencies = [
[[package]]
name = "wgpu-core"
-version = "22.1.0"
+version = "25.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0348c840d1051b8e86c3bcd31206080c5e71e5933dabd79be1ce732b0b2f089a"
+checksum = "f7b882196f8368511d613c6aeec80655160db6646aebddf8328879a88d54e500"
dependencies = [
"arrayvec",
+ "bit-set",
"bit-vec",
"bitflags 2.9.0",
- "cfg_aliases 0.1.1",
+ "cfg_aliases",
"document-features",
- "indexmap 2.5.0",
+ "hashbrown 0.15.4",
+ "indexmap 2.10.0",
"log",
"naga",
"once_cell",
"parking_lot",
+ "portable-atomic",
"profiling",
"raw-window-handle",
"rustc-hash 1.1.0",
"smallvec",
- "thiserror 1.0.69",
+ "thiserror 2.0.12",
+ "wgpu-core-deps-apple",
+ "wgpu-core-deps-emscripten",
+ "wgpu-core-deps-windows-linux-android",
"wgpu-hal",
"wgpu-types",
]
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "25.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfd488b3239b6b7b185c3b045c39ca6bf8af34467a4c5de4e0b1a564135d093d"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-emscripten"
+version = "25.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f09ad7aceb3818e52539acc679f049d3475775586f3f4e311c30165cf2c00445"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "25.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cba5fb5f7f9c98baa7c889d444f63ace25574833df56f5b817985f641af58e46"
+dependencies = [
+ "wgpu-hal",
+]
+
[[package]]
name = "wgpu-hal"
-version = "22.0.0"
+version = "25.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6bbf4b4de8b2a83c0401d9e5ae0080a2792055f25859a02bf9be97952bbed4f"
+checksum = "f968767fe4d3d33747bbd1473ccd55bf0f6451f55d733b5597e67b5deab4ad17"
dependencies = [
"android_system_properties",
"arrayvec",
@@ -9459,47 +9484,52 @@ dependencies = [
"bit-set",
"bitflags 2.9.0",
"block",
- "cfg_aliases 0.1.1",
+ "bytemuck",
+ "cfg-if 1.0.0",
+ "cfg_aliases",
"core-graphics-types 0.1.3",
- "d3d12",
"glow",
"glutin_wgl_sys",
"gpu-alloc",
"gpu-allocator",
"gpu-descriptor",
- "hassle-rs",
+ "hashbrown 0.15.4",
"js-sys",
"khronos-egl",
"libc",
"libloading 0.8.5",
"log",
- "metal 0.29.0",
+ "metal 0.31.0",
"naga",
"ndk-sys 0.5.0+25.2.9519653",
"objc",
- "once_cell",
+ "ordered-float",
"parking_lot",
+ "portable-atomic",
"profiling",
"range-alloc",
"raw-window-handle",
"renderdoc-sys",
- "rustc-hash 1.1.0",
"smallvec",
- "thiserror 1.0.69",
+ "thiserror 2.0.12",
"wasm-bindgen",
"web-sys",
"wgpu-types",
- "winapi",
+ "windows 0.58.0",
+ "windows-core 0.58.0",
]
[[package]]
name = "wgpu-types"
-version = "22.0.0"
+version = "25.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc9d91f0e2c4b51434dfa6db77846f2793149d8e73f800fa2e41f52b8eac3c5d"
+checksum = "2aa49460c2a8ee8edba3fca54325540d904dd85b2e086ada762767e17d06e8bc"
dependencies = [
"bitflags 2.9.0",
+ "bytemuck",
"js-sys",
+ "log",
+ "thiserror 2.0.12",
"web-sys",
]
@@ -9545,12 +9575,6 @@ dependencies = [
"fs_extra",
]
-[[package]]
-name = "widestring"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d"
-
[[package]]
name = "winapi"
version = "0.3.9"
@@ -10489,9 +10513,9 @@ dependencies = [
[[package]]
name = "yazi"
-version = "0.1.6"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c94451ac9513335b5e23d7a8a2b61a7102398b8cca5160829d313e84c9d98be1"
+checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
[[package]]
name = "zbus"
@@ -10621,9 +10645,9 @@ dependencies = [
[[package]]
name = "zeno"
-version = "0.2.3"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd15f8e0dbb966fd9245e7498c7e9e5055d9e5c8b676b95bd67091cd11a1e697"
+checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
[[package]]
name = "zerocopy"
@@ -10662,7 +10686,7 @@ dependencies = [
"crc32fast",
"crossbeam-utils",
"displaydoc",
- "indexmap 2.5.0",
+ "indexmap 2.10.0",
"memchr",
"thiserror 1.0.69",
]
diff --git a/Cargo.toml b/Cargo.toml
index 3c6c6f574..7386f16e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,7 @@ nokhwa = { git = "https://github.com/CapSoftware/nokhwa", rev = "b9c8079e82e2",
"serialize",
] }
nokhwa-bindings-macos = { git = "https://github.com/CapSoftware/nokhwa", rev = "b9c8079e82e2" }
-wgpu = "22.1.0"
+wgpu = "25.0.2"
flume = "0.11.0"
thiserror = "1.0"
sentry = { version = "0.34.0", features = [
diff --git a/apps/cli/src/record.rs b/apps/cli/src/record.rs
index 668fb14f9..9a1efb387 100644
--- a/apps/cli/src/record.rs
+++ b/apps/cli/src/record.rs
@@ -1,7 +1,6 @@
use std::{env::current_dir, path::PathBuf, sync::Arc};
use cap_media::{feeds::CameraFeed, sources::ScreenCaptureTarget};
-use cap_recording::{RecordingMode, RecordingOptions};
use clap::Args;
use nokhwa::utils::{ApiBackend, CameraIndex};
use tokio::{io::AsyncBufReadExt, sync::Mutex};
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index 0a169ba2e..2738e204f 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -51,7 +51,6 @@ use serde::{Deserialize, Serialize};
use serde_json::json;
use specta::Type;
use std::collections::BTreeMap;
-use std::time::Duration;
use std::{
fs::File,
future::Future,
diff --git a/crates/gpu-converters/src/nv12_rgba/mod.rs b/crates/gpu-converters/src/nv12_rgba/mod.rs
index 3bd317792..f7c81c613 100644
--- a/crates/gpu-converters/src/nv12_rgba/mod.rs
+++ b/crates/gpu-converters/src/nv12_rgba/mod.rs
@@ -12,7 +12,7 @@ pub struct NV12ToRGBA {
impl NV12ToRGBA {
pub async fn new() -> Self {
println!("NV12ToRGBA");
- let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
+ let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
// Get adapter for GPU
let adapter = instance
@@ -26,7 +26,7 @@ impl NV12ToRGBA {
// Create device and queue
let (device, queue) = adapter
- .request_device(&wgpu::DeviceDescriptor::default(), None)
+ .request_device(&wgpu::DeviceDescriptor::default())
.await
.unwrap();
@@ -85,7 +85,7 @@ impl NV12ToRGBA {
label: Some("NV12 Converter Pipeline"),
layout: Some(&pipeline_layout),
module: &shader,
- entry_point: "main",
+ entry_point: Some("main"),
compilation_options: Default::default(),
cache: None,
});
@@ -209,15 +209,15 @@ impl NV12ToRGBA {
// Copy texture to buffer
encoder.copy_texture_to_buffer(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: &output_texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
- wgpu::ImageCopyBuffer {
+ wgpu::TexelCopyBufferInfo {
buffer: &output_buffer,
- layout: wgpu::ImageDataLayout {
+ layout: wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(width * 4),
rows_per_image: Some(height),
@@ -239,7 +239,7 @@ impl NV12ToRGBA {
buffer_slice.map_async(wgpu::MapMode::Read, move |result| {
tx.send(result).unwrap();
});
- self.device.poll(wgpu::Maintain::Wait);
+ self.device.poll(wgpu::PollType::Wait);
rx.recv().unwrap().unwrap();
let data = buffer_slice.get_mapped_range();
diff --git a/crates/gpu-converters/src/util.rs b/crates/gpu-converters/src/util.rs
index 73a926fd3..5e3d26f53 100644
--- a/crates/gpu-converters/src/util.rs
+++ b/crates/gpu-converters/src/util.rs
@@ -4,7 +4,7 @@ pub fn read_buffer_to_vec(buffer: &wgpu::Buffer, device: &wgpu::Device) -> Vec<u
buffer_slice.map_async(wgpu::MapMode::Read, move |result| {
tx.send(result).unwrap();
});
- device.poll(wgpu::Maintain::Wait);
+ device.poll(wgpu::PollType::Wait);
rx.recv().unwrap().unwrap();
let data = buffer_slice.get_mapped_range();
@@ -27,15 +27,15 @@ pub fn copy_texture_to_buffer_command(
let bytes_per_row = texture.width() * bytes_per_px;
encoder.copy_texture_to_buffer(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
- wgpu::ImageCopyBuffer {
+ wgpu::TexelCopyBufferInfo {
buffer: &output_buffer,
- layout: wgpu::ImageDataLayout {
+ layout: wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(bytes_per_row),
rows_per_image: Some(texture.height()),
diff --git a/crates/gpu-converters/src/uyvy_nv12/mod.rs b/crates/gpu-converters/src/uyvy_nv12/mod.rs
index f544837a3..a7f002778 100644
--- a/crates/gpu-converters/src/uyvy_nv12/mod.rs
+++ b/crates/gpu-converters/src/uyvy_nv12/mod.rs
@@ -13,7 +13,7 @@ impl UYVYToNV12 {
pub async fn new() -> Self {
todo!("implement UV downsampling for UYVYToNV12");
- let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
+ let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let adapter = instance
.request_adapter(&wgpu::RequestAdapterOptions {
@@ -25,13 +25,10 @@ impl UYVYToNV12 {
.unwrap();
let (device, queue) = adapter
- .request_device(
- &wgpu::DeviceDescriptor {
- required_features: wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES,
- ..Default::default()
- },
- None,
- )
+ .request_device(&wgpu::DeviceDescriptor {
+ required_features: wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES,
+ ..Default::default()
+ })
.await
.unwrap();
@@ -99,7 +96,7 @@ impl UYVYToNV12 {
label: Some("YUYV Converter Pipeline"),
layout: Some(&pipeline_layout),
module: &shader,
- entry_point: "main",
+ entry_point: Some("main"),
compilation_options: Default::default(),
cache: None,
});
diff --git a/crates/gpu-converters/src/uyvy_rgba/mod.rs b/crates/gpu-converters/src/uyvy_rgba/mod.rs
index 449246e58..cbc3ac809 100644
--- a/crates/gpu-converters/src/uyvy_rgba/mod.rs
+++ b/crates/gpu-converters/src/uyvy_rgba/mod.rs
@@ -14,7 +14,7 @@ pub struct UYVYToRGBA {
impl UYVYToRGBA {
pub async fn new() -> Self {
- let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
+ let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let adapter = instance
.request_adapter(&wgpu::RequestAdapterOptions {
@@ -26,7 +26,7 @@ impl UYVYToRGBA {
.unwrap();
let (device, queue) = adapter
- .request_device(&wgpu::DeviceDescriptor::default(), None)
+ .request_device(&wgpu::DeviceDescriptor::default())
.await
.unwrap();
@@ -74,7 +74,7 @@ impl UYVYToRGBA {
label: Some("YUYV Converter Pipeline"),
layout: Some(&pipeline_layout),
module: &shader,
- entry_point: "main",
+ entry_point: Some("main"),
compilation_options: Default::default(),
cache: None,
});
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index c9297ce6b..7e5b8e149 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -5,32 +5,26 @@ use std::{
time::{Duration, Instant, SystemTime, UNIX_EPOCH},
};
-use cap_flags::FLAGS;
use cap_media::{
- data::{AudioInfo, FFAudio, VideoInfo},
+ data::VideoInfo,
encoders::{H264Encoder, MP4File, OggFile, OpusEncoder},
feeds::{AudioInputFeed, CameraFeed},
pipeline::{Pipeline, RealTimeClock},
platform::Bounds,
- sources::{
- AudioInputSource, CameraSource, ScreenCaptureFormat, ScreenCaptureSource,
- ScreenCaptureTarget,
- },
+ sources::{AudioInputSource, CameraSource, ScreenCaptureFormat, ScreenCaptureTarget},
MediaError,
};
use cap_project::{CursorEvents, StudioRecordingMeta};
use cap_utils::spawn_actor;
-use ffmpeg::ffi::AV_TIME_BASE_Q;
use flume::Receiver;
-use futures::{future::OptionFuture, StreamExt};
use relative_path::RelativePathBuf;
use tokio::sync::{oneshot, Mutex};
-use tracing::{debug, info, trace, Instrument};
+use tracing::{debug, info, trace};
use crate::{
capture_pipeline::{create_screen_capture, MakeCapturePipeline, ScreenCaptureMethod},
cursor::{spawn_cursor_recorder, CursorActor, Cursors},
- ActorError, RecordingBaseInputs, RecordingError, RecordingOptions,
+ ActorError, RecordingBaseInputs, RecordingError,
};
enum StudioRecordingActorState {
diff --git a/crates/rendering/Cargo.toml b/crates/rendering/Cargo.toml
index b199d7a7e..186f25cb3 100644
--- a/crates/rendering/Cargo.toml
+++ b/crates/rendering/Cargo.toml
@@ -26,7 +26,7 @@ thiserror.workspace = true
wgpu.workspace = true
bezier_easing = "0.1.1"
reactive_graph = "0.1.5"
-glyphon = "0.6.0"
+glyphon = "0.9.0"
tracing.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]
diff --git a/crates/rendering/src/coord.rs b/crates/rendering/src/coord.rs
index 3999222af..f301dd128 100644
--- a/crates/rendering/src/coord.rs
+++ b/crates/rendering/src/coord.rs
@@ -84,8 +84,6 @@ impl Coord<RawDisplaySpace> {
}
}
-fn frame_size() {}
-
impl Coord<CroppedDisplaySpace> {
pub fn to_frame_space(
&self,
diff --git a/crates/rendering/src/cursor_interpolation.rs b/crates/rendering/src/cursor_interpolation.rs
index 681a2dcc9..cd6201438 100644
--- a/crates/rendering/src/cursor_interpolation.rs
+++ b/crates/rendering/src/cursor_interpolation.rs
@@ -53,14 +53,18 @@ pub fn interpolate_cursor(
let events = get_smoothed_cursor_events(&cursor.moves, smoothing_config);
interpolate_smoothed_position(&events, time_secs as f64, smoothing_config)
} else {
- let (pos, cursor_id) = cursor.moves.windows(2).enumerate().find_map(|(i, chunk)| {
- if time_ms >= chunk[0].time_ms && time_ms < chunk[1].time_ms {
- let c = &chunk[0];
- Some((XY::new(c.x as f32, c.y as f32), c.cursor_id.clone()))
- } else {
- None
- }
- })?;
+ let (pos, cursor_id) = cursor
+ .moves
+ .windows(2)
+ .enumerate()
+ .find_map(|(_i, chunk)| {
+ if time_ms >= chunk[0].time_ms && time_ms < chunk[1].time_ms {
+ let c = &chunk[0];
+ Some((XY::new(c.x as f32, c.y as f32), c.cursor_id.clone()))
+ } else {
+ None
+ }
+ })?;
Some(InterpolatedCursorPosition {
position: Coord::new(XY {
diff --git a/crates/rendering/src/frame_pipeline.rs b/crates/rendering/src/frame_pipeline.rs
index ae224416a..e69f60024 100644
--- a/crates/rendering/src/frame_pipeline.rs
+++ b/crates/rendering/src/frame_pipeline.rs
@@ -1,4 +1,3 @@
-use cap_project::XY;
use futures_intrusive::channel::shared::oneshot_channel;
use wgpu::COPY_BYTES_PER_ROW_ALIGNMENT;
@@ -96,15 +95,15 @@ pub async fn finish_encoder(
);
encoder.copy_texture_to_buffer(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: session.current_texture(),
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
- wgpu::ImageCopyBuffer {
+ wgpu::TexelCopyBufferInfo {
buffer: &output_buffer,
- layout: wgpu::ImageDataLayout {
+ layout: wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(padded_bytes_per_row),
rows_per_image: Some(uniforms.output_size.1),
@@ -120,7 +119,7 @@ pub async fn finish_encoder(
buffer_slice.map_async(wgpu::MapMode::Read, move |result| {
tx.send(result).ok();
});
- device.poll(wgpu::Maintain::Wait);
+ device.poll(wgpu::PollType::Wait);
rx.receive()
.await
diff --git a/crates/rendering/src/layers/background.rs b/crates/rendering/src/layers/background.rs
index f200f1a18..b328c8e0d 100644
--- a/crates/rendering/src/layers/background.rs
+++ b/crates/rendering/src/layers/background.rs
@@ -1,5 +1,3 @@
-use std::collections::HashMap;
-
use bytemuck::{Pod, Zeroable};
use cap_project::BackgroundSource;
use image::GenericImageView;
@@ -144,14 +142,14 @@ impl BackgroundLayer {
});
queue.write_texture(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: &texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
&rgba,
- wgpu::ImageDataLayout {
+ wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(4 * dimensions.0),
rows_per_image: Some(dimensions.1),
@@ -316,8 +314,6 @@ impl ImageBackgroundPipeline {
});
let shader = device.create_shader_module(include_wgsl!("../shaders/image-background.wgsl"));
- let empty_constants: HashMap<String, f64> = HashMap::new();
-
let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("ImageBackgroundPipeline"),
layout: Some(
@@ -329,26 +325,24 @@ impl ImageBackgroundPipeline {
),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "vs_main",
+ entry_point: Some("vs_main"),
buffers: &[],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "fs_main",
+ entry_point: Some("fs_main"),
targets: &[Some(wgpu::ColorTargetState {
format: wgpu::TextureFormat::Rgba8UnormSrgb,
blend: Some(wgpu::BlendState::REPLACE),
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
}),
primitive: wgpu::PrimitiveState {
diff --git a/crates/rendering/src/layers/blur.rs b/crates/rendering/src/layers/blur.rs
index f4b7f356b..a635f143e 100644
--- a/crates/rendering/src/layers/blur.rs
+++ b/crates/rendering/src/layers/blur.rs
@@ -1,5 +1,3 @@
-use std::collections::HashMap;
-
use bytemuck::{Pod, Zeroable};
use wgpu::util::DeviceExt;
@@ -127,7 +125,6 @@ impl BlurPipeline {
include_str!("../shaders/background-blur.wgsl").into(),
),
});
- let empty_constants: HashMap<String, f64> = HashMap::new();
let pipeline_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
label: Some("Background Blur Pipeline Layout"),
bind_group_layouts: &[&bind_group_layout],
@@ -138,26 +135,24 @@ impl BlurPipeline {
layout: Some(&pipeline_layout),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "vs_main",
+ entry_point: Some("vs_main"),
buffers: &[],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "fs_main",
+ entry_point: Some("fs_main"),
targets: &[Some(wgpu::ColorTargetState {
format: wgpu::TextureFormat::Rgba8UnormSrgb,
blend: Some(wgpu::BlendState::REPLACE),
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
}),
primitive: wgpu::PrimitiveState {
diff --git a/crates/rendering/src/layers/camera.rs b/crates/rendering/src/layers/camera.rs
index 8730c82f0..8b92395f2 100644
--- a/crates/rendering/src/layers/camera.rs
+++ b/crates/rendering/src/layers/camera.rs
@@ -64,14 +64,14 @@ impl CameraLayer {
}
queue.write_texture(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: &self.frame_texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
camera_frame,
- wgpu::ImageDataLayout {
+ wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(frame_size.x * 4),
rows_per_image: None,
diff --git a/crates/rendering/src/layers/captions.rs b/crates/rendering/src/layers/captions.rs
index 0068cfc75..eb7e51c9c 100644
--- a/crates/rendering/src/layers/captions.rs
+++ b/crates/rendering/src/layers/captions.rs
@@ -7,9 +7,7 @@ use glyphon::{
use log::{debug, info, warn};
use wgpu::{util::DeviceExt, Device, Queue};
-use crate::{
- layers, parse_color_component, DecodedSegmentFrames, ProjectUniforms, RenderVideoConstants,
-};
+use crate::{parse_color_component, DecodedSegmentFrames, ProjectUniforms, RenderVideoConstants};
/// Represents a caption segment with timing and text
#[derive(Debug, Clone)]
@@ -75,7 +73,7 @@ impl CaptionsLayer {
});
// Initialize glyphon text rendering components
- let mut font_system = FontSystem::new();
+ let font_system = FontSystem::new();
let swash_cache = SwashCache::new();
let cache = Cache::new(device);
let viewport = Viewport::new(device, &cache);
@@ -90,7 +88,7 @@ impl CaptionsLayer {
// Create an empty buffer with default metrics
let metrics = Metrics::new(24.0, 24.0 * 1.2); // Default font size and line height
- let mut text_buffer = Buffer::new_empty(metrics);
+ let text_buffer = Buffer::new_empty(metrics);
Self {
settings_buffer,
@@ -122,7 +120,7 @@ impl CaptionsLayer {
self.text_buffer.set_text(
&mut self.font_system,
content,
- Attrs::new(),
+ &Attrs::new(),
Shaping::Advanced,
);
}
@@ -260,7 +258,7 @@ impl CaptionsLayer {
updated_buffer.set_text(
&mut self.font_system,
text,
- attrs,
+ &attrs,
Shaping::Advanced,
);
diff --git a/crates/rendering/src/layers/cursor.rs b/crates/rendering/src/layers/cursor.rs
index e348688b3..ef90e5b73 100644
--- a/crates/rendering/src/layers/cursor.rs
+++ b/crates/rendering/src/layers/cursor.rs
@@ -1,5 +1,3 @@
-use std::collections::HashMap;
-
use bytemuck::{Pod, Zeroable};
use cap_project::*;
use wgpu::{include_wgsl, util::DeviceExt, BindGroup, FilterMode};
@@ -61,8 +59,6 @@ impl Statics {
let shader = device.create_shader_module(include_wgsl!("../shaders/cursor.wgsl"));
- let empty_constants: HashMap<String, f64> = HashMap::new();
-
let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("Cursor Pipeline"),
layout: Some(
@@ -74,17 +70,16 @@ impl Statics {
),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "vs_main",
+ entry_point: Some("vs_main"),
buffers: &[],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "fs_main",
+ entry_point: Some("fs_main"),
targets: &[Some(wgpu::ColorTargetState {
format: wgpu::TextureFormat::Rgba8UnormSrgb,
blend: Some(wgpu::BlendState {
@@ -102,9 +97,8 @@ impl Statics {
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
}),
primitive: wgpu::PrimitiveState {
diff --git a/crates/rendering/src/layers/display.rs b/crates/rendering/src/layers/display.rs
index 5f8d64ce4..bc8eb5ff0 100644
--- a/crates/rendering/src/layers/display.rs
+++ b/crates/rendering/src/layers/display.rs
@@ -56,14 +56,14 @@ impl DisplayLayer {
}
queue.write_texture(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: &self.frame_texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
&segment_frames.screen_frame,
- wgpu::ImageDataLayout {
+ wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(frame_size.x * 4),
rows_per_image: None,
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index 64bb6e5db..e26df109e 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -322,19 +322,16 @@ impl RenderVideoConstants {
.map(|c| XY::new(c.width, c.height)),
};
- let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
+ let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let adapter = instance
.request_adapter(&wgpu::RequestAdapterOptions::default())
.await
- .ok_or(RenderingError::NoAdapter)?;
+ .map_err(|_| RenderingError::NoAdapter)?;
let (device, queue) = adapter
- .request_device(
- &wgpu::DeviceDescriptor {
- required_features: wgpu::Features::MAPPABLE_PRIMARY_BUFFERS,
- ..Default::default()
- },
- None,
- )
+ .request_device(&wgpu::DeviceDescriptor {
+ required_features: wgpu::Features::MAPPABLE_PRIMARY_BUFFERS,
+ ..Default::default()
+ })
.await?;
let cursor_textures = Self::load_cursor_textures(&device, &queue, recording_meta, meta);
@@ -394,14 +391,14 @@ impl RenderVideoConstants {
});
queue.write_texture(
- wgpu::ImageCopyTexture {
+ wgpu::TexelCopyTextureInfo {
texture: &texture,
mip_level: 0,
origin: wgpu::Origin3d::ZERO,
aspect: wgpu::TextureAspect::All,
},
&rgba,
- wgpu::ImageDataLayout {
+ wgpu::TexelCopyBufferLayout {
offset: 0,
bytes_per_row: Some(4 * dimensions.0),
rows_per_image: None,
@@ -1213,33 +1210,29 @@ pub fn create_shader_render_pipeline(
push_constant_ranges: &[],
});
- let empty_constants: HashMap<String, f64> = HashMap::new();
-
device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("Render Pipeline"),
layout: Some(&pipeline_layout),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "vs_main",
+ entry_point: Some("vs_main"),
buffers: &[],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "fs_main",
+ entry_point: Some("fs_main"),
targets: &[Some(wgpu::ColorTargetState {
format: wgpu::TextureFormat::Rgba8UnormSrgb,
blend: Some(wgpu::BlendState::ALPHA_BLENDING),
write_mask: wgpu::ColorWrites::ALL,
})],
compilation_options: wgpu::PipelineCompilationOptions {
- constants: &empty_constants,
+ constants: &[],
zero_initialize_workgroup_memory: false,
- vertex_pulling_transform: false,
},
}),
primitive: wgpu::PrimitiveState {
diff --git a/crates/rendering/src/zoom.rs b/crates/rendering/src/zoom.rs
index e3f1f6445..752292412 100644
--- a/crates/rendering/src/zoom.rs
+++ b/crates/rendering/src/zoom.rs
@@ -1,4 +1,4 @@
-use cap_project::{cursor::CursorEvents, ZoomSegment, XY};
+use cap_project::{ZoomSegment, XY};
use crate::{Coord, RawDisplayUVSpace};