[build-dependencies.cfg_aliases]
version = "0.1"
[dependencies.arrayvec]
version = "0.7"
[dependencies.bitflags]
version = "2.6"
[dependencies.bytemuck]
optional = true
version = "1.19"
[dependencies.glow]
optional = true
version = "0.14.2"
[dependencies.log]
version = "0.4"
[dependencies.naga]
version = "23.0.0"
[dependencies.once_cell]
version = "1.20.2"
[dependencies.parking_lot]
version = "0.12.1"
[dependencies.profiling]
default-features = false
version = "1"
[dependencies.raw-window-handle]
version = "0.6"
[dependencies.rustc-hash]
version = "1.1.0"
[dependencies.thiserror]
version = "1.0.65"
[dependencies.wgt]
package = "wgpu-types"
version = "23.0.0"
[dev-dependencies.cfg-if]
version = "1"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.glam]
version = "0.28"
[dev-dependencies.naga]
features = ["wgsl-in"]
version = "23.0.0"
[dev-dependencies.winit]
features = ["android-native-activity"]
version = "0.29"
[[example]]
name = "raw-gles"
required-features = ["gles"]
[features]
device_lost_panic = []
dx12 = ["dep:bit-set", "dep:libloading", "dep:range-alloc", "dep:windows-core", "gpu-allocator/d3d12", "naga/hlsl-out-if-target-windows", "windows/Win32_Graphics_Direct3D_Fxc", "windows/Win32_Graphics_Direct3D_Dxc", "windows/Win32_Graphics_Direct3D", "windows/Win32_Graphics_Direct3D12", "windows/Win32_Graphics_DirectComposition", "windows/Win32_Graphics_Dxgi_Common", "windows/Win32_Security", "windows/Win32_System_Diagnostics_Debug", "windows/Win32_System_Kernel", "windows/Win32_System_Performance", "windows/Win32_System_Threading", "windows/Win32_UI_WindowsAndMessaging"]
fragile-send-sync-non-atomic-wasm = ["wgt/fragile-send-sync-non-atomic-wasm"]
gles = ["naga/glsl-out", "dep:bytemuck", "dep:glow", "dep:glutin_wgl_sys", "dep:khronos-egl", "dep:libloading", "dep:ndk-sys", "windows/Win32_Graphics_OpenGL", "windows/Win32_Graphics_Gdi", "windows/Win32_System_LibraryLoader", "windows/Win32_UI_WindowsAndMessaging"]
internal_error_panic = []
metal = ["naga/msl-out-if-target-apple", "dep:block"]
oom_panic = []
renderdoc = ["dep:libloading", "dep:renderdoc-sys"]
vulkan = ["naga/spv-out", "dep:ash", "dep:gpu-alloc", "dep:gpu-descriptor", "dep:libloading", "dep:smallvec", "dep:android_system_properties"]
[lib]
[package]
authors = ["gfx-rs developers"]
description = "WebGPU hardware abstraction layer"
edition = "2021"
homepage = "https://wgpu.rs/"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
name = "wgpu-hal"
readme = "README.md"
repository = "https://github.com/gfx-rs/wgpu"
rust-version = "1.76"
version = "23.0.1"
[package.metadata.cargo-machete]
ignored = ["cfg_aliases"]
[package.metadata.docs.rs]
features = ["vulkan", "gles", "renderdoc"]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "wasm32-unknown-unknown"]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.js-sys]
version = "0.3.70"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wasm-bindgen]
version = "0.2.95"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.web-sys]
features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext", "OffscreenCanvas"]
version = "0.3.72"
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.block]
optional = true
version = "0.1"
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.core-graphics-types]
version = "0.1"
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.metal]
version = "0.29.0"
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies.objc]
version = "0.2.5"
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dev-dependencies.glutin]
default-features = false
features = ["egl", "wgl", "wayland", "x11"]
version = "0.31"
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dev-dependencies.glutin-winit]
default-features = false
features = ["egl", "wgl", "wayland", "x11"]
version = "0.4"
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dev-dependencies.rwh_05]
package = "raw-window-handle"
version = "0.5"
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dev-dependencies.winit]
features = ["android-native-activity", "rwh_05"]
version = "0.29"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ash]
optional = true
version = "0.38.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.gpu-alloc]
optional = true
version = "0.6"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.gpu-descriptor]
optional = true
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.khronos-egl]
features = ["dynamic"]
optional = true
version = "6"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libloading]
optional = true
version = "0.8"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.renderdoc-sys]
optional = true
version = "1.1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.smallvec]
features = ["union"]
optional = true
version = "1"
[target.'cfg(target_os = "android")'.dependencies.android_system_properties]
optional = true
version = "0.1.1"
[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
optional = true
version = "0.5.0"
[target.'cfg(target_os = "emscripten")'.dependencies.khronos-egl]
features = ["static", "no-pkg-config"]
version = "6"
[target.'cfg(target_os = "emscripten")'.dependencies.libloading]
optional = true
version = "0.8"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.bit-set]
optional = true
version = "0.8"
[target."cfg(windows)".dependencies.glutin_wgl_sys]
optional = true
version = "0.6"
[target."cfg(windows)".dependencies.gpu-allocator]
default-features = false
optional = true
version = "0.27"
[target."cfg(windows)".dependencies.range-alloc]
optional = true
version = "0.1"
[target."cfg(windows)".dependencies.windows]
default-features = false
optional = true
version = "0.58"
[target."cfg(windows)".dependencies.windows-core]
default-features = false
optional = true
version = "0.58"