Skip to content

Commit

Permalink
fixup! feat: implement F16 support in shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jan 22, 2025
1 parent fc79146 commit e68c86e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
17 changes: 14 additions & 3 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ ndk-sys = "0.5.0"
#gpu-alloc = { path = "../gpu-alloc/gpu-alloc" }

[patch.crates-io]
half = { git = "https://github.com/FL33TW00D/half-rs.git", branch = "feature/arbitrary" }
#glow = { path = "../glow" }
#web-sys = { path = "../wasm-bindgen/crates/web-sys" }
#js-sys = { path = "../wasm-bindgen/crates/js-sys" }
Expand Down
5 changes: 4 additions & 1 deletion examples/features/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ encase = { workspace = true, features = ["glam"] }
flume.workspace = true
getrandom.workspace = true
glam = { workspace = true, features = ["bytemuck"] }
half = { version = "2.1.0", features = ["bytemuck"] }
half = { package = "half-2", version = "2.4.1", features = [
"arbitrary",
"bytemuck",
] }
ktx2.workspace = true
log.workspace = true
nanorand.workspace = true
Expand Down
8 changes: 6 additions & 2 deletions naga/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ petgraph = { version = "0.7", optional = true }
pp-rs = { version = "0.2.1", optional = true }
hexf-parse = { version = "0.2.1", optional = true }
unicode-xid = { version = "0.2.6", optional = true }
# TODO: remove `[patch]` entry in workspace `Cargo.toml` for `half` after we upstream `arbitrary` support
half = { version = "2.4.1", features = ["arbitrary", "num-traits"] }
# TODO: Use `half` directly again after <https://github.com/starkat99/half-rs/pull/111> is released
# upstream.
half = { package = "half-2", version = "2.4.1", features = [
"arbitrary",
"num-traits",
] }
num-traits = "0.2"

[build-dependencies]
Expand Down

0 comments on commit e68c86e

Please sign in to comment.