feat(d3d12_x): add the bindless descriptor set and the descriptor hash table #35
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!35
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/35/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?
@Dark3581 on GitHub · 2026-11-22 10:53 UTC · original
Dark3581:feat/bindless-descriptors→main· +1212 −38 · 17 files · 1 commits · merged 2026-11-22 10:56 UTCWhat
The bindless descriptor side of the Vulkan backend (#4): how a translated shader turns a T# or S# into a descriptor.
DescriptorHashTablebuilds the table translated shaders search at set 0 binding 2: word 0 the mask, then ten words per slot (an eight-word key, the bindless index, padding); FNV-1a over the eight key words; eight slots probed from the hash; a miss resolves to index 0. An S# key is its four words followed by four0xFFFFFFFF. Insert places a key within its eight slots or grows the table; erase clears a slot (the lookup does not stop at empty slots, so later keys stay reachable). The all-zero key and index 0 are refused, since an empty slot would match the zero key first.BindlessSetallocates the title layout's descriptor set from an update-after-bind pool, puts fallbacks at index 0 of every binding (zeroed 1x1 images in each dimension and component class,R32_UINTwhere the binding declares it, and a nearest clamp-to-edge sampler), and uploads the table to binding 2, growing its buffer as needed.WriteImageandWriteSamplerfill other slots.R32ui; every other image binding uses unknown-format views of float, uint or sint components.tools/spirv_layout.pycompares both, soshaders_layoutnow also catches a format or component mismatch.VulkanDevicegains buffer, image, sampler, descriptor and command functions, a memory type query and a one-shotSubmit.anybox-pipeline-probe bindlesschecks the table end to end: hash test vectors, 3,000 image and 200 sampler keys inserted (with growth), a replaced index, 300 erased keys, 500 absent keys and the zero key, then a GPU compute shader that runs the same lookup over binding 2 must return the CPU table's answer for every key. The shader's GLSL source sits next to its compiled words (core/libs/probe/shaders/), with the regeneration command in BUILD.md.DescriptorTableandBindlessSet.Tested
check_conventions.pyanddebt_fold.py --checkpass.bindless: 2,900 entries in 16,384 slots (grown from 1,024), 14 fallback images, 3,701 of 3,701 GPU lookups equal to the CPU table, 0 validation errors.shaders_layoutwith the format and component check finds all 25,889 modules fit (all twenty bindings' formats reflected from the modules);shaders_compute60 of 60 with 0 validation errors. No game data in the PR.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md