Skip to content

Commit

Permalink
fix: web build
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Dec 30, 2024
1 parent d800e9e commit 7c1a993
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 17 deletions.
9 changes: 3 additions & 6 deletions src/gaussian/formats/cloud_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ use crate::{
CommonCloud,
TestCloud,
},
iter::{
PositionIter,
PositionParIter,
},
iter::PositionIter,
packed::{Gaussian3d, PlanarGaussian3d},
settings::CloudSettings,
},
Expand Down Expand Up @@ -79,8 +76,8 @@ impl CommonCloud for PlanarGaussian3d {
}

#[cfg(feature = "sort_rayon")]
fn position_par_iter(&self) -> PositionParIter<'_> {
PositionParIter::new(&self.position_visibility)
fn position_par_iter(&self) -> crate::gaussian::iter::PositionParIter<'_> {
crate::gaussian::iter::PositionParIter::new(&self.position_visibility)
}
}

Expand Down
Empty file.
2 changes: 2 additions & 0 deletions src/gaussian/formats/cloud_3d_quantized.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// TODO: gaussian_3d and gaussian_3d_quantized conversions
// TODO: packed quantized gaussian 3d
1 change: 1 addition & 0 deletions src/gaussian/formats/cloud_3d_spz.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TODO: spz quantized format https://github.com/nianticlabs/spz
9 changes: 3 additions & 6 deletions src/gaussian/formats/cloud_4d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use crate::{
CommonCloud,
TestCloud,
},
iter::{
PositionIter,
PositionParIter,
},
iter::PositionIter,
packed::{Gaussian4d, PlanarGaussian4d},
},
random_gaussians_4d,
Expand Down Expand Up @@ -182,8 +179,8 @@ impl CommonCloud for PlanarGaussian4d {
}

#[cfg(feature = "sort_rayon")]
fn position_par_iter(&self) -> PositionParIter<'_> {
PositionParIter::new(&self.position_visibility)
fn position_par_iter(&self) -> crate::gaussian::iter::PositionParIter<'_> {
crate::gaussian::iter::PositionParIter::new(&self.position_visibility)
}
}

Expand Down
17 changes: 17 additions & 0 deletions src/gaussian/formats/cloud_4d_hierarchy.rs
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
// TODO: gaussian cloud 4d with temporal hierarchy
use crate::gaussian::packed::PlanarGaussian4dHandle;


pub struct TemporalGaussianLevel {
pub instance_count: usize,
// TODO: swap buffer slicing
}

// TODO: make this an asset
pub struct TemporalGaussianHierarchy {
pub flat_cloud: PlanarGaussian4dHandle,
pub levels: Vec<TemporalGaussianLevel>,
// TODO: level descriptor validation
}

// TODO: implement level streaming utilities in src/stream/hierarchy.rs
// TODO: implement GPU slice utilities in src/stream/slice.rs
Empty file.
1 change: 1 addition & 0 deletions src/gaussian/formats/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod cloud_3d;
pub mod cloud_4d;
pub mod cloud_4d_hierarchy;
7 changes: 2 additions & 5 deletions src/gaussian/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use bevy_interleave::prelude::Planar;
#[cfg(feature = "sort_rayon")]
use rayon::prelude::*;

use crate::gaussian::iter::{
PositionIter,
PositionParIter,
};
use crate::gaussian::iter::PositionIter;


pub trait CommonCloud
Expand Down Expand Up @@ -77,7 +74,7 @@ where
fn position_iter(&self) -> PositionIter<'_>;

#[cfg(feature = "sort_rayon")]
fn position_par_iter(&self) -> PositionParIter<'_>;
fn position_par_iter(&self) -> crate::gaussian::iter::PositionParIter<'_>;
}

pub trait TestCloud {
Expand Down

0 comments on commit 7c1a993

Please sign in to comment.