feat(d3d12_x): add root signature and pipeline state objects #64
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!64
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/64/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-23 01:14 UTC · original
Dark3581:feat/pipeline-objects→main· +584 −35 · 13 files · 1 commits · merged 2026-11-23 01:17 UTCWhat
ID3D12RootSignatureandID3D12PipelineStateas objects, plus binding them and their root arguments on command lists:objects/RootSignature.cpp: holds the layout the host'sd3d12.dlldeserializes from the title's blob (#56). A missing or junk blob is refused.objects/PipelineObject.cpp(PipelineStateObject):GetCachedBlobreturnsE_NOTIMPL, because a title's blobs hold console GPU code.objects/CommandList.cpp:SetPipelineState, an initial pipeline state inCreateandReset, andClearStatewith or without one.Set{Compute,Graphics}RootSignature: a different signature clears that bind point's arguments; setting the same one keeps them.ExecuteIndirectstill stop the title, now with the real reason: how root arguments, descriptor heaps and the heap base reach the translated shader's user data is unknown until a title's calls show it.Tested
Windows 10, RTX 3070 Ti (driver 621.14), Khronos validation layer.
New
pso_probe pso-objects <store> compute|graphics ..., run by thepipeline_statetest against its compute store and its graphics store (real SPIR-V modules):GetCachedBlob;SetDescriptorHeaps, all four parameter kinds checked word by word, same and different root signatures, andClearStateboth ways;Compute: 17 checks; graphics: 18 checks; 0 validation errors.
MinGW
ctest: 72 of 72. With MSVC 2022, bothpso-objectsruns,descriptors-gpuandcommandlist-gpupass, and every target builds exceptab_gameinput, which needsgameinput.lib, which this machine doesn't have. The MSVC build caught a test variable namedsmall, awindows.hmacro; it is renamed.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>.md