Superseded by #7 #6

Closed
github-bot wants to merge 1 commit from github-bot/gh-6 into main AGit
Owner

@⁠LordLoon on GitHub · 2026-11-27 06:47 UTC · original
LordLoon:shader-cube-array-compute-lod → main · +169 −0 · 1 files · 1 commits · closed without merging

What

The two probes from #5 as regression tests in cube_lod_tests.rs. They assert the console's result and are #[ignore]d until their fixes land, so CI stays green. A fix removes its test's #[ignore].

  • cube_face_operand_of_a_later_slice_reads_its_face: face operands 8 × slice + face read their face (the slice clamps with one cube bound).
  • cube_implicit_lod_in_compute_follows_the_quad: an implicit-LOD sample in a compute program picks its level from the quad's lanes (8 and 16 texels apart: level 4). It also checks that the lanes' coordinates differ, so the probe itself is sound.

The shared setup sits in two helpers, cube_program and run_cube. The existing test is unchanged.

Measured

cargo test -p victory-shader --locked --lib cube_ -- --ignored, on WARP and on an RTX 4080 SUPER:

test expected today
faces 0, 1, 4, 5, 8, 9, 12, 13 0, 1, 4, 5, 0, 1, 4, 5 0, 1, 4, 5, 0, 0, 0, 0
compute levels per lane 4, 4, 4, 4 0, 0, 0, 0

Without --ignored: 1 passed, 2 ignored.

Checks

  • cargo test --workspace --locked
  • cargo clippy --workspace --all-targets --locked: no new warnings
  • Ported code keeps its copyright lines; the commit message names the source repo and commit (no ported code)

Refs #5.

AI-assisted.

**@⁠LordLoon** on GitHub · 2026-11-27 06:47 UTC · [original](https://github.com/brothernog/rota/pull/6) `LordLoon:shader-cube-array-compute-lod` → `main` · +169 −0 · 1 files · 1 commits · closed without merging ## What The two probes from #5 as regression tests in `cube_lod_tests.rs`. They assert the console's result and are `#[ignore]`d until their fixes land, so CI stays green. A fix removes its test's `#[ignore]`. - `cube_face_operand_of_a_later_slice_reads_its_face`: face operands `8 × slice + face` read their face (the slice clamps with one cube bound). - `cube_implicit_lod_in_compute_follows_the_quad`: an implicit-LOD sample in a compute program picks its level from the quad's lanes (8 and 16 texels apart: level 4). It also checks that the lanes' coordinates differ, so the probe itself is sound. The shared setup sits in two helpers, `cube_program` and `run_cube`. The existing test is unchanged. ## Measured `cargo test -p victory-shader --locked --lib cube_ -- --ignored`, on WARP and on an RTX 4080 SUPER: | test | expected | today | |---|---|---| | faces 0, 1, 4, 5, 8, 9, 12, 13 | 0, 1, 4, 5, 0, 1, 4, 5 | 0, 1, 4, 5, 0, **0, 0, 0** | | compute levels per lane | 4, 4, 4, 4 | **0, 0, 0, 0** | Without `--ignored`: 1 passed, 2 ignored. ## Checks - [x] `cargo test --workspace --locked` - [x] `cargo clippy --workspace --all-targets --locked`: no new warnings - [x] Ported code keeps its copyright lines; the commit message names the source repo and commit (no ported code) Refs #5. AI-assisted.
Two D3D12 tests in cube_lod_tests.rs, ignored until their fixes land
(issue #5):

- A cube sample whose face operand is 8 x slice + face reads that face
  (slice clamped with one cube bound); today faces 9, 12 and 13 read +X.
- An implicit-LOD sample in a compute program takes its level from the
  quad's lanes (8 and 16 texels apart: level 4); today every lane reads
  level 0. The test also checks that the lanes' coordinates differ.

`cargo test -p victory-shader --lib cube_ -- --ignored` shows both
failing on WARP and on hardware.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 06:48:55 +00:00
github-bot closed this pull request 2026-11-27 06:54:12 +00:00
github-bot changed title from shader: regression tests for cube faces past 5 and compute sample levels to Superseded by #7 2026-11-27 07:12:58 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.