gpu(native): honor render-target view mip and slice #171
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!171
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/171/head"
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?
@evan-kolberg on GitHub · 2026-11-26 22:56 UTC · original
evan-kolberg:fix/native-rtv-subresources→main· +341 −40 · 9 files · 1 commits · merged 2026-11-26 23:10 UTCSummary
Native
OMSetRenderTargetsandClearRenderTargetViewnow resolve the explicitly selected mip and array slice through the same cached Metal attachment. This builds on ItsMariusBC’s format handling in #145 atc155f089, preserving its sRGB/UNORM handling. Null descriptors and base-anchored 3D views retain their existing attachment behavior.Explicit views support one single-sampled 1D or 2D subresource. Invalid ranges, unsupported planes, layered 1D/2D selections, and multisampled views are refused. An invalid clear records no command. A bind with an invalid attachment is refused without shifting the other slots.
Generated verification
cargo checkofvictory-gpupassed with BLAKE3's portable feature. These checks cover generated data.I used Codex to implement the change and run the generated checks.
@LakshanSivakumar on GitHub · 2026-11-26 23:10 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!