Skip to content

Commit 61eecac

Browse files
authored
feature: WIP occlusion culling (#137)
* use WeakHybrid in InternalRenderlet * Occlusion culling, part one added MipMapGenerator, depth pyramid shaders slab buffers are created with size 1 to avoid wgpu validation bug fixed a bug where re-staging a texture often copied to the wrong layer debbugging led to better sphere projection for culling update sample count so we don't invalidate every frame debug overlay of bounding spheres use box instead of circle for bounds in debug overlay don't use compute culling by default * regenerate shaders, fix merge errors, treat *.spv and *.wgsl as binary * use cargo-gpu on branch * clean rust-gpu checkouts (temporary) * also clean the rust-gpu cache dir * allow the cache to persist * don't use bool as u32 in shaders * change rust-gpu cache step * update cargo gpu
1 parent ce0487c commit 61eecac

File tree

86 files changed

+7419
-4053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+7419
-4053
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[alias]
2-
shaders = "gpu build --output-dir crates/renderling/shaders --shader-crate crates/renderling/ --shader-manifest crates/renderling/shaders/manifest.json"
2+
shaders = "gpu toml crates/renderling"
33

44
[build]
55
rustflags = ["--cfg=web_sys_unstable_apis"]

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.spv binary
2+
*.wgsl binary

.github/workflows/push.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ jobs:
1818
- uses: actions/cache@v4
1919
with:
2020
path: ~/.cache/rust-gpu
21-
key: ${{ runner.os }}
21+
key: 0-${{ runner.os }}
2222
- uses: moonrepo/setup-rust@v1
23-
- run: rustup toolchain add nightly-2024-04-24
24-
- run: rustup component add --toolchain nightly-2024-04-24 rust-src rustc-dev llvm-tools
25-
- run: cargo install --git https://github.com/rust-gpu/cargo-gpu
23+
- run: RUST_LOG=trace cargo install --git https://github.com/rust-gpu/cargo-gpu
2624
- run: rm -rf crates/renderling/src/linkage/* crates/renderling/shaders
2725
- run: RUST_LOG=trace cargo shaders
2826
- run: cargo build -p renderling

0 commit comments

Comments
 (0)