-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: initial scaffolding of rendering tests * feat: pipeline capture tests * fix: add main to radix gpu test * fix: bevy_inspector_egui patch and render_context access * test: radix sort order * fix: debug_gpu feature * more radix testing * refactor: scaffold for CPU/GPU sort backends * refactor: generic sort plugin and entry_buffer_a migration * feat: CPU and GPU sort runtime switching * fix: CPU sort skipping logic * fix: radix test must use radix sort * fix: gaussian cloud asset mutation on CPU sort * docs: cleanup TODO comments
- Loading branch information
Showing
24 changed files
with
1,182 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "../" | ||
}, | ||
{ | ||
"path": "../../bevy" | ||
} | ||
], | ||
"settings": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,90 @@ | ||
[package] | ||
name = "bevy_gaussian_splatting" | ||
description = "bevy gaussian splatting render pipeline plugin" | ||
version = "0.4.0" | ||
version = "0.5.0" | ||
edition = "2021" | ||
authors = ["mosure <[email protected]>"] | ||
license = "MIT" | ||
keywords = ["bevy", "gaussian-splatting", "render-pipeline", "ply"] | ||
categories = ["computer-vision", "graphics", "rendering", "rendering::data-formats"] | ||
keywords = [ | ||
"bevy", | ||
"gaussian-splatting", | ||
"render-pipeline", | ||
"ply", | ||
] | ||
categories = [ | ||
"computer-vision", | ||
"graphics", | ||
"rendering", | ||
"rendering::data-formats", | ||
] | ||
homepage = "https://github.com/mosure/bevy_gaussian_splatting" | ||
repository = "https://github.com/mosure/bevy_gaussian_splatting" | ||
readme = "README.md" | ||
exclude = [".devcontainer", ".github", "docs", "dist", "build", "assets", "credits"] | ||
exclude = [ | ||
".devcontainer", | ||
".github", | ||
"docs", | ||
"dist", | ||
"build", | ||
"assets", | ||
"credits", | ||
] | ||
default-run = "viewer" | ||
|
||
|
||
[features] | ||
default = ["io_flexbuffers", "io_ply"] | ||
default = [ | ||
"io_flexbuffers", | ||
"io_ply", | ||
"sort_radix", | ||
"sort_rayon", | ||
"tooling", | ||
"viewer", | ||
] | ||
|
||
debug_gpu = [] | ||
|
||
io_bincode2 = ["bincode2", "flate2"] | ||
io_flexbuffers = ["flexbuffers"] | ||
io_ply = ["ply-rs"] | ||
|
||
sort_radix = [] | ||
sort_rayon = [ | ||
"rayon", | ||
"wasm-bindgen-rayon", | ||
] | ||
|
||
tooling = [ | ||
"byte-unit", | ||
] | ||
|
||
viewer = [ | ||
"bevy-inspector-egui", | ||
"bevy_panorbit_camera", | ||
] | ||
|
||
|
||
|
||
[dependencies] | ||
bevy-inspector-egui = "0.21" | ||
bevy_panorbit_camera = "0.9" | ||
bevy-inspector-egui = { version = "0.21", optional = true } | ||
bevy_panorbit_camera = { version = "0.9", optional = true } | ||
bincode2 = { version = "2.0", optional = true } | ||
byte-unit = "5.0.3" | ||
byte-unit = { version = "5.0", optional = true } | ||
bytemuck = "1.14" | ||
flate2 = { version = "1.0", optional = true } | ||
flexbuffers = { version = "2.0", optional = true } | ||
ply-rs = { version = "0.1", optional = true } | ||
rand = "0.8" | ||
rayon = { version = "1.8", optional = true } | ||
serde = "1.0" | ||
static_assertions = "1.1" | ||
wgpu = "0.17.1" | ||
|
||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
console_error_panic_hook = "0.1" | ||
wasm-bindgen = "0.2" | ||
wasm-bindgen-rayon = { version = "1.0", optional = true } | ||
|
||
|
||
# TODO: use minimal bevy features | ||
|
@@ -50,7 +96,6 @@ default-features = true | |
version = "0.12" | ||
default-features = true | ||
features = [ | ||
'bevy_ci_testing', | ||
'debug_glam_assert', | ||
] | ||
|
||
|
@@ -71,10 +116,6 @@ features = [ | |
criterion = { version = "0.5", features = ["html_reports"] } | ||
|
||
|
||
# remove after close: https://github.com/jakobhellermann/bevy-inspector-egui/issues/163 | ||
[profile.dev.package."bevy-inspector-egui"] | ||
opt-level = 1 | ||
|
||
[profile.dev.package."*"] | ||
opt-level = 3 | ||
|
||
|
@@ -99,17 +140,27 @@ path = "src/lib.rs" | |
[[bin]] | ||
name = "viewer" | ||
path = "viewer/viewer.rs" | ||
required-features = ["viewer"] | ||
|
||
[[bin]] | ||
name = "ply_to_gcloud" | ||
path = "tools/ply_to_gcloud.rs" | ||
required-features = ["io_ply"] | ||
required-features = ["io_ply", "tooling"] | ||
|
||
|
||
[[bin]] | ||
name = "compare_aabb_obb" | ||
path = "tools/compare_aabb_obb.rs" | ||
|
||
[[bin]] | ||
name = "test_gaussian" | ||
path = "tests/gpu/gaussian.rs" | ||
|
||
[[bin]] | ||
name = "test_radix" | ||
path = "tests/gpu/radix.rs" | ||
required-features = ["debug_gpu", "sort_radix"] | ||
|
||
|
||
[[bench]] | ||
name = "io" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
use static_assertions::assert_cfg; | ||
|
||
|
||
#[cfg(feature = "io_bincode2")] | ||
pub mod bincode2; | ||
|
||
#[cfg(feature = "io_flexbuffers")] | ||
pub mod flexbuffers; | ||
|
||
|
||
assert_cfg!( | ||
any( | ||
feature = "io_bincode2", | ||
feature = "io_flexbuffers", | ||
), | ||
"no gcloud io enabled", | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.