feat(d3d12_x): lay out root signatures deserialized through the host d3d12.dll #56
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!56
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/56/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 23:41 UTC · original
Dark3581:feat/root-signature-layout→main· +428 −2 · 8 files · 1 commits · merged 2026-11-22 23:45 UTCWhat
The generic half of
CreateRootSignature:pso/RootSignatureLayout.cpp:DeserializeRootSignaturetakes a serialized root signature, deserializes it with the hostd3d12.dll'sD3D12CreateVersionedRootSignatureDeserializer(loaded from the system folder, not AnyBox's own export) and converts it to version 1.1, so 1.0 and 1.1 blobs give the same layout.BuildRootSignatureLayoutlays a description out:TranslateSampler;Where each of those words lands in a translated shader's user registers is console-specific and not known; the layout is not that mapping, and the debt fragment says so. Blobs carrying the console flag bits are rejected by the host, as
RootSignature.cpp's entry already notes.Tested
pso_probe rootsig-selftest: a 1.1 description with root constants, a root CBV, a view table with an unbounded range in another space, a sampler table and two static samplers is laid out and checked field by field (words 8, first words 0/4/6/7, ranges, static sampler compare and border color); the same description serialized by the host and deserialized gives the same layout; a 1.0 blob deserializes converted to 1.1; a junk blob is rejected; 9 refusals (over 64 words, a mixed table, an unbounded range first, an empty table, zero constants, a bad visibility, a bad border color, the console flag bits, an unknown version). Writing it, the host serializer rejected the first draft because its static samplers overlapped the sampler table's registers; the test now puts them in another space. Runs in thepipeline_statetest.ctest: 66 of 66. With MSVC 2022 thed3d12_xtargets build and the self test passes.python tools/check_conventions.pyanddebt_fold.py --check: ok.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>.mdd3d12.dllserializer and deserializer