Skip to content

Commit ffbc73e

Browse files
committed
don't need half on gpu
1 parent a3ee4a2 commit ffbc73e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

crates/renderling/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ spirv-std = { version = "0.9" }
4747
# dependencies for GPU code
4848
[target.'cfg(target_arch = "spirv")'.dependencies]
4949
crabslab = { workspace = true, features = ["glam"] }
50-
half = { version = "2.3", default-features = false }
5150
glam = { workspace = true, default-features = false, features = ["libm"] }
5251

5352
# dependencies for CPU code

crates/renderling/src/color.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn linear_xfer_u16(c: &mut u16) {
1616
*c = ((*c as f32 / 65535.0).powf(2.2) * 65535.0) as u16;
1717
}
1818

19+
#[cfg(not(target_arch = "spirv"))]
1920
pub fn linear_xfer_f16(c: &mut u16) {
2021
let mut f = half::f16::from_bits(*c).to_f32();
2122
linear_xfer_f32(&mut f);

0 commit comments

Comments
 (0)