mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #1814] [MERGED] D3D-CLEAR-UAV-3D-SLICE: clear selected 3D UAV slices and rectangles #1828
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1828
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1814
Author: @timbot103
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:d3d-clear-uav-3d-slice📝 Commits (1)
926e9d3D3D-CLEAR-UAV-3D-SLICE: clear selected 3D UAV slices and rectangles📊 Changes
9 files changed (+757 additions, -76 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+15 -12)📝
runtime/CMakeLists.txt(+1 -1)📝
runtime/shims/d3d12_com.cpp(+19 -9)📝
runtime/src/command_list.h(+2 -2)📝
runtime/src/gfx10_descriptors.h(+16 -3)📝
runtime/src/vulkan_replay.h(+54 -17)📝
runtime/test/d3d12_texture_uav_test.cpp(+90 -5)📝
runtime/test/d3d12_uav_clear_test.cpp(+299 -24)📝
runtime/test/replay_uav_clear_offset_test.cpp(+261 -3)📄 Description
Claimed in the coordination issue as: D3D-CLEAR-UAV-3D-SLICE
What and why
ClearUnorderedAccessViewUintandClearUnorderedAccessViewFloatcan now clear selected W slices of a 3D texture mip and apply XY rectangles to each selected slice. A tagged descriptor carries the W range through a descriptor copy. An untagged descriptor uses the bound resource's mip depth, and an unpredicated whole-mip clear uses the existing fast path.The staged path fills up to 64 KiB of scratch once and reuses the pattern across tiles and slices. It supports direct and compute queues, clips rectangles to the mip, and orders overlapping writes. It refuses predicated staged clears and incompatible 3D view/backing formats. The existing packed RGB9E5 representation on R32_UINT is supported.
Tested
gta6rtwith MSVC 2022, Ninja andRelWithDebInfo. A clean build matched the warning set on unmodified0d80bc5df.1, WARP expected NaN). Both outcomes reproduced on unmodified0d80bc5df. The 3D UAV clear tests passed in all four configurations.GPUs tested: NVIDIA GeForce RTX 5080, driver 616.64, Vulkan 1.4.351; AMD Radeon(TM) Graphics, driver 25.10.30.02 (Windows 32.0.21030.2001), Vulkan 1.4.315. Both on Windows 11 Pro build 26200.
AI-assisted: yes (Gemini, Codex, Claude)
Checklist
mainat0d80bc5df.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.