diff --git a/Cargo.toml b/Cargo.toml index 3921abfa..40954351 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_gaussian_splatting" description = "bevy gaussian splatting render pipeline plugin" -version = "2.4.0" +version = "2.4.1" edition = "2021" authors = ["mosure "] license = "MIT" diff --git a/src/render/mod.rs b/src/render/mod.rs index 369292ef..f7d7253b 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -458,7 +458,7 @@ pub struct ShaderDefines { impl ShaderDefines { pub fn max_tile_count(&self, count: usize) -> u32 { - (count as u32 + self.workgroup_entries_c - 1) / self.workgroup_entries_c + (count as u32).div_ceil(self.workgroup_entries_c) } pub fn sorting_status_counters_buffer_size(&self, count: usize) -> usize {