Skip to content

Commit

Permalink
Merge branch 'trunk' into depth-clip-control
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbinBernhardssonARM authored Jun 28, 2023
2 parents a095de6 + 973cd3e commit a384de3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion wgpu-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ targets = [
[lib]

[features]
default = []
default = ["link"]

# Backends, passed through to wgpu-hal
metal = ["hal/metal"]
Expand All @@ -31,6 +31,9 @@ gles = ["hal/gles"]
dx11 = ["hal/dx11"]
dx12 = ["hal/dx12"]

# Use static linking for libraries. Disale to manually link. Enabled by default.
link = ["hal/link"]

# Support the Renderdoc graphics debugger:
# https://renderdoc.org/
renderdoc = ["hal/renderdoc"]
Expand Down Expand Up @@ -80,6 +83,7 @@ version = "0.16"
package = "wgpu-hal"
path = "../wgpu-hal"
version = "0.16"
default_features = false

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
web-sys = { version = "0.3.60", features = ["HtmlCanvasElement", "OffscreenCanvas"] }
5 changes: 3 additions & 2 deletions wgpu-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ targets = [
[lib]

[features]
default = []
default = ["link"]
metal = ["naga/msl-out", "block"]
vulkan = ["naga/spv-out", "ash", "gpu-alloc", "gpu-descriptor", "libloading", "smallvec"]
gles = ["naga/glsl-out", "glow", "khronos-egl", "libloading"]
Expand All @@ -43,6 +43,7 @@ dx12 = ["naga/hlsl-out", "d3d12", "bit-set", "range-alloc", "winapi/std", "winap
windows_rs = ["gpu-allocator"]
dxc_shader_compiler = ["hassle-rs"]
renderdoc = ["libloading", "renderdoc-sys"]
link = ["metal/link"]

[[example]]
name = "halmark"
Expand Down Expand Up @@ -101,7 +102,7 @@ d3d12 = { version = "0.6.0", git = "https://github.com/gfx-rs/d3d12-rs", rev = "
# backend: Metal
block = { version = "0.1", optional = true }

metal = "0.25.0"
metal = { git = "https://github.com/gfx-rs/metal-rs.git", rev = "a6a0446", default_features = false }
objc = "0.2.5"
core-graphics-types = "0.1"

Expand Down

0 comments on commit a384de3

Please sign in to comment.