Repository navigation
Runtime: bind 3D shader-resource views through set 0 (D3D-72) - #672
Conversation
Volume depth belongs in the T# depth field, while its Vulkan view has a single array layer. Route matching descriptors through the existing 3D binding so a shader can select W slices and use a view-relative mip.
Keep both packed and volume textures in the bindless readback test. Place the volume upload beyond the UINT texture so the RGB9E5 upload cannot overwrite its first depth slice.
|
Merged On this head, all 128 volume samples and the RGB9E5 readback matched. Reversing W gave 128 differences; substituting the default view for mip 1 gave 64. The upstream device still rejected the default 3D SRV when tested with the same fixture. The separate 3D RTV test matched WARP for all 648 texels, the bindless test matched all 14 draw readbacks, and Windows CTest passed 28/28. RTX 5080 driver 616.92, Khronos validation enabled. AI-assisted. Hosted checks on this head finished 8/9. Both Runtime jobs passed. The other CI workflow's |
|
Tested 89f19af on an NVIDIA GeForce RTX 4090 (driver 617.14, Vulkan 1.4.351), Windows 10 Home 22H2 (19045), MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo,
Code read: the dimension and view-type check, the one-layer volume view, AI-assisted (Claude Code); repository tests only, no game files. |
Preserve the new plane views and packed-format tests alongside volume sampling so they run in the same descriptor fixture.
|
Merged Clean Windows build on RTX 5080 / 616.92 with Vulkan validation enabled. CTest passed 29/29. The two SRVs matched all 128 expected RGBA texels, the separate volume RTV test matched WARP on 648 texels, and the bindless test reported zero bad pixels in 14 draws. With this head's fixture, the unmodified upstream device failed at the default volume SRV. Reversing W failed 128/128 texels, binding the base view in place of mip 1 failed 64/128, and deliberately overlapping the volume upload with the RGB9E5 upload failed 16/128. Restoring the inputs gave 0/128 differences. AI-assisted verification. |
|
Code review at |
Exercise the null descriptor when the layer accepts a transfer-only volume and allow a resource-creation rejection consistent with the host runtime.
|
@matheuskshn added the requested negative case in I also tried resource creation directly on native D3D12 and WARP. Both returned AI-assisted verification. |
Claimed in the coordination issue as D3D-72, single-sampled Texture3D SRVs.
What and why
The bindless set already has a sampled 3D image array at binding 6. The device refused every 3D resource before reaching it. Default and explicit
TEXTURE3DSRVs can now bind a typed volume of matching format. The T# encodes the resource's base depth, the Vulkan view has one array layer, and the view's first mip and mip count are preserved.This covers single-sampled color textures with a zero
ResourceMinLODClamp. A nonzero clamp and format casts are rejected on this path. MSAA SRVs remain a separate part of D3D-72. There is no dependency on #643.Tested
Windows 11, NVIDIA RTX 5080, driver 616.92, Khronos Vulkan validation enabled.
c432cdcwith the new fixtured3d12_descriptor_teston this changeThe fixture uploads an 8×8×4 mip and a 4×4×2 mip through
CopyTextureRegion. RGB varies independently with X, Y and Z, while alpha identifies the mip. The compute shader looks up both the T# and S# from actual D3D12 heap slots in the device's descriptor hash table. The test owns the Vulkan pipeline and reads the output buffer back on the CPU. Wrong-dimensional, out-of-range, differently typed and nonzero-clamp descriptors were also checked.Full Windows CTest passed 27/27.
d3d12_vulkan_device_testpassed;vk_bindless_testreturned zero bad pixels across 14 draws using source-builtvs_idsandps_tex.Checklist
docs/d3d12_vulkan.md.AI-assisted with Codex.