Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

1000 B
Raw Blame
[workspace]
resolver = "2"
members = [".", "sample"]
default-members = [".", "sample"]

[workspace.package]
version = "0.1.0"
edition = "2024"
license = "MIT"

[workspace.dependencies]
jsc = { package = "threert-jsc", path = "../runtime/crates/jsc" }
rt = { package = "threert-rt", path = "../runtime/crates/rt" }
canvas2d = { package = "threert-canvas2d", path = "../runtime/crates/canvas2d" }
wgpu = "25"

[package]
name = "threert-webgpu"
description = "ThreeRT WebGPU renderer: navigator.gpu for the JavaScriptCore runtime over wgpu (zero path-tracer code)"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
jsc.workspace = true
rt.workspace = true
canvas2d.workspace = true
wgpu.workspace = true
serde_json = "1"
pollster = "0.4"

[[bin]]
name = "webgpu-shot"
path = "src/bin/webgpu-shot.rs"

[profile.dev]
opt-level = 1

[profile.dev.package."*"]
opt-level = 3

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true