used pixels instead of state

This commit is contained in:
STP
2023-11-12 20:21:47 -05:00
parent 83e45b6860
commit 15c39e3c05
8 changed files with 322 additions and 508 deletions

293
Cargo.lock generated
View File

@@ -419,6 +419,17 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "d3d12"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8f0de2f5a8e7bd4a9eec0e3c781992a4ce1724f68aec7d7a3715344de8b39da"
dependencies = [
"bitflags 1.3.2",
"libloading 0.7.4",
"winapi",
]
[[package]]
name = "d3d12"
version = "0.7.0"
@@ -623,6 +634,18 @@ dependencies = [
"xml-rs",
]
[[package]]
name = "glow"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca0fe580e4b60a8ab24a868bc08e2f03cbcb20d3d676601fa909386713333728"
dependencies = [
"js-sys",
"slotmap",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "glow"
version = "0.13.0"
@@ -644,6 +667,16 @@ dependencies = [
"gl_generator",
]
[[package]]
name = "gpu-alloc"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22beaafc29b38204457ea030f6fb7a84c9e4dd1b86e311ba0542533453d87f62"
dependencies = [
"bitflags 1.3.2",
"gpu-alloc-types 0.2.0",
]
[[package]]
name = "gpu-alloc"
version = "0.6.0"
@@ -651,7 +684,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
"bitflags 2.4.1",
"gpu-alloc-types",
"gpu-alloc-types 0.3.0",
]
[[package]]
name = "gpu-alloc-types"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54804d0d6bc9d7f26db4eaec1ad10def69b599315f487d32c334a80d1efe67a5"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
@@ -663,6 +705,19 @@ dependencies = [
"bitflags 2.4.1",
]
[[package]]
name = "gpu-allocator"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce95f9e2e11c2c6fadfce42b5af60005db06576f231f5c92550fdded43c423e8"
dependencies = [
"backtrace",
"log",
"thiserror",
"winapi",
"windows 0.44.0",
]
[[package]]
name = "gpu-allocator"
version = "0.23.0"
@@ -674,7 +729,7 @@ dependencies = [
"presser",
"thiserror",
"winapi",
"windows",
"windows 0.51.1",
]
[[package]]
@@ -685,7 +740,7 @@ checksum = "cc11df1ace8e7e564511f53af41f3e42ddc95b56fd07b3f4445d2a6048bc682c"
dependencies = [
"bitflags 2.4.1",
"gpu-descriptor-types",
"hashbrown",
"hashbrown 0.14.2",
]
[[package]]
@@ -697,6 +752,12 @@ dependencies = [
"bitflags 2.4.1",
]
[[package]]
name = "hashbrown"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
version = "0.14.2"
@@ -755,6 +816,16 @@ dependencies = [
"png",
]
[[package]]
name = "indexmap"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
dependencies = [
"autocfg 1.1.0",
"hashbrown 0.12.3",
]
[[package]]
name = "indexmap"
version = "2.1.0"
@@ -762,7 +833,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
"hashbrown",
"hashbrown 0.14.2",
]
[[package]]
@@ -818,6 +889,17 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "khronos-egl"
version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c2352bd1d0bceb871cb9d40f24360c8133c11d7486b68b5381c1dd1a32015e3"
dependencies = [
"libc",
"libloading 0.7.4",
"pkg-config",
]
[[package]]
name = "khronos-egl"
version = "6.0.0"
@@ -943,6 +1025,20 @@ dependencies = [
"autocfg 1.1.0",
]
[[package]]
name = "metal"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de11355d1f6781482d027a3b4d4de7825dcedb197bf573e0596d00008402d060"
dependencies = [
"bitflags 1.3.2",
"block",
"core-graphics-types",
"foreign-types 0.3.2",
"log",
"objc",
]
[[package]]
name = "metal"
version = "0.27.0"
@@ -986,6 +1082,26 @@ dependencies = [
"windows-sys 0.48.0",
]
[[package]]
name = "naga"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbcc2e0513220fd2b598e6068608d4462db20322c0e77e47f6f488dfcfc279cb"
dependencies = [
"bit-set",
"bitflags 1.3.2",
"codespan-reporting",
"hexf-parse",
"indexmap 1.9.3",
"log",
"num-traits",
"rustc-hash",
"spirv",
"termcolor",
"thiserror",
"unicode-xid",
]
[[package]]
name = "naga"
version = "0.14.0"
@@ -996,7 +1112,7 @@ dependencies = [
"bitflags 2.4.1",
"codespan-reporting",
"hexf-parse",
"indexmap",
"indexmap 2.1.0",
"log",
"num-traits",
"rustc-hash",
@@ -1350,6 +1466,20 @@ dependencies = [
"siphasher",
]
[[package]]
name = "pixels"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ba8189b31db4f12fbf0d4a8eab2d7d7343a504a8d8a7ea4b14ffb2e6129136a"
dependencies = [
"bytemuck",
"pollster",
"raw-window-handle",
"thiserror",
"ultraviolet",
"wgpu 0.16.3",
]
[[package]]
name = "pkg-config"
version = "0.3.27"
@@ -1620,9 +1750,10 @@ dependencies = [
"lazy_static",
"log",
"nalgebra",
"pixels",
"pollster",
"roots",
"wgpu",
"wgpu 0.18.0",
"winit",
]
@@ -1875,7 +2006,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap",
"indexmap 2.1.0",
"toml_datetime",
"winnow",
]
@@ -1892,6 +2023,15 @@ version = "1.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "ultraviolet"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a28554d13eb5daba527cc1b91b6c341372a0ae45ed277ffb2c6fbc04f319d7e"
dependencies = [
"wide",
]
[[package]]
name = "unicode-ident"
version = "1.0.12"
@@ -2077,6 +2217,30 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "wgpu"
version = "0.16.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "480c965c9306872eb6255fa55e4b4953be55a8b64d57e61d7ff840d3dcc051cd"
dependencies = [
"arrayvec",
"cfg-if",
"js-sys",
"log",
"naga 0.12.3",
"parking_lot",
"profiling",
"raw-window-handle",
"smallvec",
"static_assertions",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"wgpu-core 0.16.1",
"wgpu-hal 0.16.2",
"wgpu-types 0.16.1",
]
[[package]]
name = "wgpu"
version = "0.18.0"
@@ -2088,7 +2252,7 @@ dependencies = [
"flume",
"js-sys",
"log",
"naga",
"naga 0.14.0",
"parking_lot",
"profiling",
"raw-window-handle",
@@ -2097,9 +2261,32 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"wgpu-core",
"wgpu-hal",
"wgpu-types",
"wgpu-core 0.18.0",
"wgpu-hal 0.18.0",
"wgpu-types 0.18.0",
]
[[package]]
name = "wgpu-core"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f478237b4bf0d5b70a39898a66fa67ca3a007d79f2520485b8b0c3dfc46f8c2"
dependencies = [
"arrayvec",
"bit-vec",
"bitflags 2.4.1",
"codespan-reporting",
"log",
"naga 0.12.3",
"parking_lot",
"profiling",
"raw-window-handle",
"rustc-hash",
"smallvec",
"thiserror",
"web-sys",
"wgpu-hal 0.16.2",
"wgpu-types 0.16.1",
]
[[package]]
@@ -2113,7 +2300,7 @@ dependencies = [
"bitflags 2.4.1",
"codespan-reporting",
"log",
"naga",
"naga 0.14.0",
"parking_lot",
"profiling",
"raw-window-handle",
@@ -2121,8 +2308,50 @@ dependencies = [
"smallvec",
"thiserror",
"web-sys",
"wgpu-hal",
"wgpu-types",
"wgpu-hal 0.18.0",
"wgpu-types 0.18.0",
]
[[package]]
name = "wgpu-hal"
version = "0.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ecb3258078e936deee14fd4e0febe1cfe9bbb5ffef165cb60218d2ee5eb4448"
dependencies = [
"android_system_properties",
"arrayvec",
"ash",
"bit-set",
"bitflags 2.4.1",
"block",
"core-graphics-types",
"d3d12 0.6.0",
"foreign-types 0.3.2",
"glow 0.12.3",
"gpu-alloc 0.5.4",
"gpu-allocator 0.22.0",
"gpu-descriptor",
"hassle-rs",
"js-sys",
"khronos-egl 4.1.0",
"libc",
"libloading 0.8.1",
"log",
"metal 0.24.0",
"naga 0.12.3",
"objc",
"parking_lot",
"profiling",
"range-alloc",
"raw-window-handle",
"renderdoc-sys",
"rustc-hash",
"smallvec",
"thiserror",
"wasm-bindgen",
"web-sys",
"wgpu-types 0.16.1",
"winapi",
]
[[package]]
@@ -2138,20 +2367,20 @@ dependencies = [
"bitflags 2.4.1",
"block",
"core-graphics-types",
"d3d12",
"glow",
"d3d12 0.7.0",
"glow 0.13.0",
"glutin_wgl_sys",
"gpu-alloc",
"gpu-allocator",
"gpu-alloc 0.6.0",
"gpu-allocator 0.23.0",
"gpu-descriptor",
"hassle-rs",
"js-sys",
"khronos-egl",
"khronos-egl 6.0.0",
"libc",
"libloading 0.8.1",
"log",
"metal",
"naga",
"metal 0.27.0",
"naga 0.14.0",
"objc",
"once_cell",
"parking_lot",
@@ -2164,10 +2393,21 @@ dependencies = [
"thiserror",
"wasm-bindgen",
"web-sys",
"wgpu-types",
"wgpu-types 0.18.0",
"winapi",
]
[[package]]
name = "wgpu-types"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0c153280bb108c2979eb5c7391cb18c56642dd3c072e55f52065e13e2a1252a"
dependencies = [
"bitflags 2.4.1",
"js-sys",
"web-sys",
]
[[package]]
name = "wgpu-types"
version = "0.18.0"
@@ -2226,6 +2466,15 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows"
version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b"
dependencies = [
"windows-targets 0.42.2",
]
[[package]]
name = "windows"
version = "0.51.1"