Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,069 changes: 568 additions & 501 deletions Cargo.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,29 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
[dependencies]
wgpu-3dgs-core = { version = "0.6" }

# For local development:
# wgpu-3dgs-core = { path = "../wgpu-3dgs-core" }

# For developing against latest upstream:
# wgpu-3dgs-core = { git = "https://github.com/LioQing/wgpu-3dgs-core" }

bytemuck = { version = "1.24", features = [
bytemuck = { version = "1.25", features = [
"derive",
"extern_crate_alloc",
"min_const_generics",
] }
bitflags = { version = "2.10", features = ["bytemuck"] }
glam = { version = "0.30", features = ["bytemuck"] }
bitflags = { version = "2.11", features = ["bytemuck"] }
glam = { version = "0.32", features = ["bytemuck"] }
half = { version = "2.7", features = ["bytemuck"] }
log = "0.4"
paste = "1.0"
thiserror = "2.0"
wgpu = "28.0"
wgpu = "29.0"
Comment thread
LioQing marked this conversation as resolved.
wesl = "0.3"

[patch.crates-io]
wgpu-3dgs-core = { git = "https://github.com/LioQing/wgpu-3dgs-core", rev = "226984e3679c663d429b5e1bc3e2b06e3bc5a6db" }

# For local development:
# wgpu-3dgs-core = { path = "../wgpu-3dgs-core" }
Comment thread
LioQing marked this conversation as resolved.

[dev-dependencies]
assert_matches = { version = "1.5" }
clap = { version = "4.5", features = ["derive"] }
clap = { version = "4.6", features = ["derive"] }
env_logger = { version = "0.11" }
pollster = { version = "0.4", features = ["macro"] }
winit = { version = "0.30" }
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@

## Overview

> [!WARNING]
>
> This library is under active development, breaking API changes between versions may occur frequently.
>
> Use at your own risk.

This library provides a set of tools to create and manipulate 3D Gaussian Splatting models. It includes:

- Selecting Gaussians using selection operations and expressions.
Expand Down
1,468 changes: 734 additions & 734 deletions coverage/lcov.info

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion examples/custom_modify_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ async fn main() {
let radius = args.radius;

log::debug!("Creating wgpu instance");
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let instance =
wgpu::Instance::new(wgpu::InstanceDescriptor::new_without_display_handle_from_env());

log::debug!("Requesting adapter");
let adapter = instance
Expand Down
3 changes: 2 additions & 1 deletion examples/filter_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ async fn main() {
let offset = Vec3::from_slice(&args.offset);

log::debug!("Creating wgpu instance");
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let instance =
wgpu::Instance::new(wgpu::InstanceDescriptor::new_without_display_handle_from_env());

log::debug!("Requesting adapter");
let adapter = instance
Expand Down
3 changes: 2 additions & 1 deletion examples/modify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ async fn main() {
let model_path = &args.model;

log::debug!("Creating wgpu instance");
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let instance =
wgpu::Instance::new(wgpu::InstanceDescriptor::new_without_display_handle_from_env());

log::debug!("Requesting adapter");
let adapter = instance
Expand Down
3 changes: 2 additions & 1 deletion examples/modify_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ async fn main() {
let offset = Vec3::from_slice(&args.offset);

log::debug!("Creating wgpu instance");
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let instance =
wgpu::Instance::new(wgpu::InstanceDescriptor::new_without_display_handle_from_env());

log::debug!("Requesting adapter");
let adapter = instance
Expand Down
4 changes: 3 additions & 1 deletion src/modifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ use crate::{
/// #
/// # type GaussianPod = core::GaussianPodWithShSingleCov3dSingleConfigs;
/// #
/// # let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
/// # let instance = wgpu::Instance::new(
/// # wgpu::InstanceDescriptor::new_without_display_handle_from_env()
/// # );
/// #
/// # let adapter = instance
/// # .request_adapter(&wgpu::RequestAdapterOptions::default())
Expand Down
4 changes: 3 additions & 1 deletion src/selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ impl SelectionExpr {
/// #
/// # type GaussianPod = core::GaussianPodWithShSingleCov3dSingleConfigs;
/// #
/// # let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
/// # let instance = wgpu::Instance::new(
/// # wgpu::InstanceDescriptor::new_without_display_handle_from_env()
/// # );
/// #
/// # let adapter = instance
/// # .request_adapter(&wgpu::RequestAdapterOptions::default())
Expand Down
8 changes: 6 additions & 2 deletions src/selection_modifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ use crate::{
/// #
/// # type GaussianPod = core::GaussianPodWithShSingleCov3dSingleConfigs;
/// #
/// # let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
/// # let instance = wgpu::Instance::new(
/// # wgpu::InstanceDescriptor::new_without_display_handle_from_env()
/// # );
/// #
/// # let adapter = instance
/// # .request_adapter(&wgpu::RequestAdapterOptions::default())
Expand Down Expand Up @@ -135,7 +137,9 @@ use crate::{
/// #
/// # type GaussianPod = core::GaussianPodWithShSingleCov3dSingleConfigs;
/// #
/// # let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
/// # let instance = wgpu::Instance::new(
/// # wgpu::InstanceDescriptor::new_without_display_handle_from_env()
/// # );
/// #
/// # let adapter = instance
/// # .request_adapter(&wgpu::RequestAdapterOptions::default())
Expand Down
4 changes: 3 additions & 1 deletion tests/common/test_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ pub struct TestContext {
impl TestContext {
pub fn new() -> Self {
pollster::block_on(async {
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let instance = wgpu::Instance::new(
wgpu::InstanceDescriptor::new_without_display_handle_from_env(),
);

let adapter = instance
.request_adapter(&wgpu::RequestAdapterOptions::default())
Expand Down
Loading