make Sd8 and Sd16 Pod
+use bytemuck::{Pod, Zeroable};
use serde::{Deserialize, Serialize};
pub trait SignedDistance: Into<f32> {
@@ -18,6 +19,12 @@ pub struct Sd8(pub i8);
#[derive(Clone, Copy, Debug, Deserialize, Eq, Ord, PartialEq, PartialOrd, Serialize)]
pub struct Sd16(pub i16);
+unsafe impl Zeroable for Sd8 {}
+unsafe impl Pod for Sd8 {}
+
+unsafe impl Zeroable for Sd16 {}
+unsafe impl Pod for Sd16 {}
+
impl Sd8 {
pub const RESOLUTION: f32 = std::i8::MAX as f32;
pub const PRECISION: f32 = 1.0 / Self::RESOLUTION;
