diff --git a/crates/spirv_backend/src/support.rs b/crates/spirv_backend/src/support.rs index edb073e..2583ce0 100644 --- a/crates/spirv_backend/src/support.rs +++ b/crates/spirv_backend/src/support.rs @@ -131,17 +131,6 @@ impl<'a, T> Array3<'a, T> { } } - pub fn index(self, idx: Vec3u) -> Optional { - checked_index(idx, self.dim) - } - - pub fn into_handle(self, idx: Vec3u) -> ArrayHandle<'a, T> { - let idx = checked_index(idx, self.dim).unwrap(); - unsafe { - self.data.get_handle(idx) - } - } - pub fn into_ref(self, idx: Vec3u) -> &'a T { let idx = checked_index(idx, self.dim).unwrap(); unsafe { @@ -187,10 +176,6 @@ impl<'a, T> Array3Mut<'a, T> { } } - // fn as_array3<'b>(&'b self) -> Array3<'b, T> { - // Array3::new(self.data, self.dim) - // } - pub fn index(&self, idx: Vec3u) -> Optional { if idx.x() < self.dim.x() && idx.y() < self.dim.y() && idx.z() < self.dim.z() { let flat_idx = index(idx, self.dim);