From 7beb7c341114aaca384a595cd9f99a537a087dec Mon Sep 17 00:00:00 2001 From: Zicklag Date: Sun, 30 Aug 2020 16:33:17 -0500 Subject: [PATCH] Update For Latest GFX Using a specific Git commit for now because it is unreleased. --- wgpu-core/Cargo.toml | 10 +++++----- wgpu-core/src/device/mod.rs | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 49579b6b4..d27e99935 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -25,8 +25,8 @@ arrayvec = "0.5" bitflags = "1.0" copyless = "0.1" fxhash = "0.2" -hal = { package = "gfx-hal", version = "0.6" } -gfx-backend-empty = "0.6" +hal = { package = "gfx-hal", git = "https://github.com/gfx-rs/gfx.git", rev = "c9fcd08956eeddac8f6d85b02794fc5e3d1717f5" } +gfx-backend-empty = { git = "https://github.com/gfx-rs/gfx.git", rev = "c9fcd08956eeddac8f6d85b02794fc5e3d1717f5" } parking_lot = "0.11" raw-window-handle = { version = "0.3", optional = true } ron = { version = "0.6", optional = true } @@ -34,8 +34,8 @@ serde = { version = "1.0", features = ["serde_derive"], optional = true } smallvec = "1" tracing = { version = "0.1", default-features = false, features = ["std"] } thiserror = "1" -gfx-descriptor = "0.2" -gfx-memory = "0.2" +gfx-descriptor = { git = "https://github.com/katharostech/gfx-extras.git", branch = "gl-final-showdown" } +gfx-memory = { git = "https://github.com/katharostech/gfx-extras.git", branch = "gl-final-showdown" } [dependencies.naga] version = "0.2" @@ -64,4 +64,4 @@ gfx-backend-vulkan = { version = "0.6.4" } loom = "0.3" [build-dependencies] -cfg_aliases = "0.1" \ No newline at end of file +cfg_aliases = "0.1" diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index c445e4888..cf71ba88d 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -1739,12 +1739,13 @@ impl Global { let actual_border = desc .border_color .map(|c| match c { - wgt::SamplerBorderColor::TransparentBlack => [0.0, 0.0, 0.0, 0.0], - wgt::SamplerBorderColor::OpaqueBlack => [0.0, 0.0, 0.0, 1.0], - wgt::SamplerBorderColor::OpaqueWhite => [1.0, 1.0, 1.0, 1.0], + wgt::SamplerBorderColor::TransparentBlack => { + hal::image::BorderColor::TransparentBlack + } + wgt::SamplerBorderColor::OpaqueBlack => hal::image::BorderColor::OpaqueBlack, + wgt::SamplerBorderColor::OpaqueWhite => hal::image::BorderColor::OpaqueWhite, }) - .map(hal::image::PackedColor::from) - .unwrap_or(hal::image::PackedColor(0)); + .unwrap_or(hal::image::BorderColor::OpaqueBlack); let info = hal::image::SamplerDesc { min_filter: conv::map_filter(desc.min_filter),