GPU: implement resource-backed texture UAV clears (#771) #1352

Closed
wbkepler wants to merge 1 commit from upstream-pr/1352 into main
wbkepler commented 2026-11-24 17:35:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by wbkepler on 2026-11-24T17:35:03Z.


Summary

Implements #771:

  • Implements ClearUnorderedAccessViewUint and ClearUnorderedAccessViewFloat for resource-backed texture UAVs across crates/victory-gpu/src/{descriptor/host.rs,draw.rs,host.rs,list.rs,texture.rs}.
  • Tracks host texture state transitions and shader-visible/non-shader-visible descriptor pairs cleanly across command-list recording and submission.
  • Adds unit and live D3D12 WARP tests verifying Uint and Float texture UAV clears.

Verification

  • cargo clippy -p victory-gpu --all-targets — passed
  • cargo test -p victory-gpu — passed
  • cargo xtask policy — passed
<!-- greyfinch-sync:Marvisak/VIctory:issue:6587730899 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1352). Originally posted by [wbkepler](https://github.com/wbkepler) on 2026-11-24T17:35:03Z. --- ## Summary Implements #771: - Implements `ClearUnorderedAccessViewUint` and `ClearUnorderedAccessViewFloat` for resource-backed texture UAVs across `crates/victory-gpu/src/{descriptor/host.rs,draw.rs,host.rs,list.rs,texture.rs}`. - Tracks host texture state transitions and shader-visible/non-shader-visible descriptor pairs cleanly across command-list recording and submission. - Adds unit and live D3D12 WARP tests verifying `Uint` and `Float` texture UAV clears. ## Verification - `cargo clippy -p victory-gpu --all-targets` — passed - `cargo test -p victory-gpu` — passed - `cargo xtask policy` — passed
shortselow-byte commented 2026-11-24 20:03:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by shortselow-byte on 2026-11-24T19:32:09Z.


For triage: this is the third open PR implementing ClearUnorderedAccessViewUint/Float on texture UAVs, after #948 and #1162, and none of the three mentions the others. git merge-tree against the current heads: this conflicts with #948 (descriptor/host.rs, host.rs, list.rs) and with #1162 (descriptor/host.rs, host.rs). #948 has already been run on NVIDIA, AMD and WARP.

This PR on its own, at a695f88 on main ffe310e, isolated target directory, Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT: workspace 344 passed, 0 failed, including its two new tests; both clippy runs clean.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7142236973 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1352#issuecomment-7142236973). Originally posted by [shortselow-byte](https://github.com/shortselow-byte) on 2026-11-24T19:32:09Z. --- For triage: this is the third open PR implementing `ClearUnorderedAccessViewUint/Float` on texture UAVs, after #948 and #1162, and none of the three mentions the others. `git merge-tree` against the current heads: this conflicts with #948 (`descriptor/host.rs`, `host.rs`, `list.rs`) and with #1162 (`descriptor/host.rs`, `host.rs`). #948 has already been run on NVIDIA, AMD and WARP. This PR on its own, at `a695f88` on `main` `ffe310e`, isolated target directory, Windows 11, Rust 1.98.1 MSVC, AMD Radeon RX 6900 XT: workspace 344 passed, 0 failed, including its two new tests; both clippy runs clean.
upstream-sync closed this pull request 2026-11-25 01:06:18 +00:00
Marvisak commented 2026-11-25 01:08:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:38:14Z.


Automated triage for the maintainers. Closing because this change is already in main, or main has since replaced the code it patches.

Texture UAV clears are already served in main (draw.rs State::clear_unordered through a dynamic slot of the bound view heap); same capability, 828 stale lines.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148719873 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1352#issuecomment-7148719873). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:38:14Z. --- Automated triage for the maintainers. Closing because this change is already in `main`, or `main` has since replaced the code it patches. Texture UAV clears are already served in main (draw.rs State::clear_unordered through a dynamic slot of the bound view heap); same capability, 828 stale lines. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1352
No description provided.