Formats: add a runnable BC5 record reconstruction shader example #2591
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2591
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2591"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Dathinel on GitHub · 2026-11-25 16:21 UTC · original
Dathinel:examples/bc5-records-hlsl→main· +228 −0 · 4 files · 2 commits · openAdds a runnable Shader Model 6.6 reference for reconstructing two-channel BC5 blocks from decoded BCPack symbols. The example documents the raw buffer layout and reads endpoint and index predictors independently from history or the dictionary. It runs one stream serially. The runtime decoder is unchanged.
Tested on Windows with an RTX 3050 Laptop and WARP:
Both devices matched the CPU reference for four synthetic blocks. A separate differential run covered 131 blocks per device and detected swapped channels. Targeted Clippy and the asset policy passed. No throughput or game-level result is claimed.
AI-assisted implementation and review with Codex and Claude Code.
@Marvisak on GitHub · 2026-11-25 22:20 UTC · original
Automated triage for the maintainers.
Needs the maintainer's decision. This adds a hand-written SM 6.6 HLSL example (
crates/victory-formats/examples/bc5/, shader, include and README) that rebuilds BC5 blocks from decoded BCPack symbols, plus an#[ignore]d test inemit/valu_tests.rs. That test runsdxc.exefrom PATH and compares the result with constants the PR says were taken frombcpack::decode. The runtime decoder is unchanged, nothing in VIctory uses the shader, and CI never runs the test. CI (check) passes and it merges cleanly.Two points go to the maintainer: whether he wants GPU reference examples that nothing uses in the repo, and the new test, which spawns an external compiler (same pattern as
flow_tests.rs). If he does want it, the README should shrink to the binding layout (repo docs stay short).Generated by Claude Code
@futurepro62 on GitHub · 2026-11-26 01:48 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
29ac6a5(on its base67e8ae1).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 773 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.