We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ee4a2 commit ffbc73eCopy full SHA for ffbc73e
crates/renderling/Cargo.toml
@@ -47,7 +47,6 @@ spirv-std = { version = "0.9" }
47
# dependencies for GPU code
48
[target.'cfg(target_arch = "spirv")'.dependencies]
49
crabslab = { workspace = true, features = ["glam"] }
50
-half = { version = "2.3", default-features = false }
51
glam = { workspace = true, default-features = false, features = ["libm"] }
52
53
# dependencies for CPU code
crates/renderling/src/color.rs
@@ -16,6 +16,7 @@ pub fn linear_xfer_u16(c: &mut u16) {
16
*c = ((*c as f32 / 65535.0).powf(2.2) * 65535.0) as u16;
17
}
18
19
+#[cfg(not(target_arch = "spirv"))]
20
pub fn linear_xfer_f16(c: &mut u16) {
21
let mut f = half::f16::from_bits(*c).to_f32();
22
linear_xfer_f32(&mut f);
0 commit comments