mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
Update For Latest GFX
Using a specific Git commit for now because it is unreleased.
This commit is contained in:
1 parent
165d7717b4
commit
7beb7c3411
2 files changed
+11
-10
No files matched your search
@@ -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"
|
||||
cfg_aliases = "0.1"
|
||||
@@ -1739,12 +1739,13 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
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),
|
||||
|
||||
Reference in new issue
Block a user