diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /gfx/wgpu_bindings/Cargo.toml | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/wgpu_bindings/Cargo.toml')
-rw-r--r-- | gfx/wgpu_bindings/Cargo.toml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gfx/wgpu_bindings/Cargo.toml b/gfx/wgpu_bindings/Cargo.toml new file mode 100644 index 0000000000..16a96fda78 --- /dev/null +++ b/gfx/wgpu_bindings/Cargo.toml @@ -0,0 +1,62 @@ +[package] +name = "wgpu_bindings" +version = "0.1.0" +authors = [ + "Dzmitry Malyshau <kvark@mozilla.com>", + "Joshua Groves <josh@joshgroves.com>", +] +edition = "2018" +license = "MPL-2.0" +publish = false + +[lib] + +[features] +default = [] + +[dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" +#Note: "replay" shouldn't ideally be needed, +# but it allows us to serialize everything across IPC. +features = ["replay", "trace", "serial-pass", "strict_asserts", "wgsl", "renderdoc"] + +# We want the wgpu-core Metal backend on macOS and iOS. +# (We should consider also enabling "vulkan" for Vulkan Portability.) +[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" +features = ["metal"] + +# We want the wgpu-core Direct3D backends on Windows. +[target.'cfg(windows)'.dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" +features = ["dx11", "dx12"] + +# We want the wgpu-core Vulkan backend on Linux and Windows. +[target.'cfg(any(windows, all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies.wgc] +package = "wgpu-core" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" +features = ["vulkan"] + +[dependencies.wgt] +package = "wgpu-types" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" + +[dependencies.wgh] +package = "wgpu-hal" +git = "https://github.com/gfx-rs/wgpu" +rev = "186a29c34d54d8628bbebb998a537210ac565b71" + +[dependencies] +bincode = "1" +log = "0.4" +parking_lot = "0.11" +serde = "1" +nsstring = { path = "../../xpcom/rust/nsstring" } |