spirv_backend: support: remove unused helpers

This commit is contained in:
2022-07-26 13:35:58 -07:00
parent 6e4133db4d
commit 09f7c8acb9

View File

@@ -131,17 +131,6 @@ impl<'a, T> Array3<'a, T> {
}
}
pub fn index(self, idx: Vec3u) -> Optional<usize> {
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<usize> {
if idx.x() < self.dim.x() && idx.y() < self.dim.y() && idx.z() < self.dim.z() {
let flat_idx = index(idx, self.dim);