test(renderer): validate pipelines with the noop backend #965

Merged
SakulFlee merged 1 commit from test/renderer-noop-validation into main 2026-10-29 01:10:35 +00:00
Owner

Summary

Adds headless renderer validation using wgpu's noop backend, so CI can exercise shader compilation and pipeline/bind-group layout validation without a GPU.

  • Enables wgpu's noop feature as a renderer dev-dependency only.
  • Adds renderer-construction coverage for baseline post/deferred/volumetric pipelines and shadow pipelines.
  • Adds full Renderer::render tests for FXAA/volumetrics, SMAA, and SMAA + volumetrics.
  • Adds direct SMAA pipeline/bind-group validation.
  • Fixes a real fallback bug found by the tests: the fallback shadow depth texture now exposes a D2Array view, matching the world bind-group layout when shadows are disabled.

Validation

  • cargo test --workspace --no-fail-fast passes, including the new noop tests.
  • cargo check --workspace with the workspace clippy driver and -D warnings passes.
  • Rust formatting checks pass across Crates/ and Examples/.
  • These tests validate API/layout compatibility; they do not replace visual or performance verification on a real GPU.
## Summary Adds headless renderer validation using wgpu's noop backend, so CI can exercise shader compilation and pipeline/bind-group layout validation without a GPU. - Enables wgpu's `noop` feature as a renderer dev-dependency only. - Adds renderer-construction coverage for baseline post/deferred/volumetric pipelines and shadow pipelines. - Adds full `Renderer::render` tests for FXAA/volumetrics, SMAA, and SMAA + volumetrics. - Adds direct SMAA pipeline/bind-group validation. - Fixes a real fallback bug found by the tests: the fallback shadow depth texture now exposes a `D2Array` view, matching the world bind-group layout when shadows are disabled. ## Validation - `cargo test --workspace --no-fail-fast` passes, including the new noop tests. - `cargo check --workspace` with the workspace clippy driver and `-D warnings` passes. - Rust formatting checks pass across `Crates/` and `Examples/`. - These tests validate API/layout compatibility; they do not replace visual or performance verification on a real GPU.
test(renderer): validate pipelines with the noop backend
All checks were successful
Lint / lint (pull_request) Successful in 1m23s
PR / test (pull_request) Successful in 3m8s
7fe7e0c12f

Smart test results

Result: PASS

Scope: orbital_renderer

Reason: directly changed crates

Elapsed: 2m 34s

Workflow run

Overall: 17 tests, 17 passed, 0 failed, 0 skipped

Nextest: 17 tests, 17 passed, 0 failed, 0 skipped
Doctests: no tests reported

Crate Nextest Passed Failed Skipped Doctests Time
orbital_renderer 17 17 0 0 - 0.13s
pie showData
    title Nextest outcomes
    "Passed" : 17
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** orbital_renderer **Reason:** directly changed crates **Elapsed:** 2m 34s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/829) **Overall:** 17 tests, 17 passed, 0 failed, 0 skipped **Nextest:** 17 tests, 17 passed, 0 failed, 0 skipped **Doctests:** no tests reported | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital_renderer | 17 | 17 | 0 | 0 | - | 0.13s | ```mermaid pie showData title Nextest outcomes "Passed" : 17 ```
SakulFlee force-pushed test/renderer-noop-validation from 7fe7e0c12f
All checks were successful
Lint / lint (pull_request) Successful in 1m23s
PR / test (pull_request) Successful in 3m8s
to f2ef3baf20
All checks were successful
Lint / lint (pull_request) Successful in 1m29s
PR / test (pull_request) Successful in 3m8s
2026-10-29 00:15:49 +00:00
Compare
SakulFlee force-pushed test/renderer-noop-validation from f2ef3baf20
All checks were successful
Lint / lint (pull_request) Successful in 1m29s
PR / test (pull_request) Successful in 3m8s
to b5f589aeb9
All checks were successful
Lint / lint (pull_request) Successful in 1m24s
PR / test (pull_request) Successful in 3m2s
2026-10-29 00:22:09 +00:00
Compare
SakulFlee deleted branch test/renderer-noop-validation 2026-10-29 01:10:35 +00:00
Sign in to join this conversation.
No description provided.