docs(d3d12_vulkan): what the title does with GetDescriptorHandleIncrementSize (D3D12-DESCRIPTOR-INCREMENTS) #1143
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1143"
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?
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T19:10:44Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141413757 (ID
D3D12-DESCRIPTOR-INCREMENTS; earlier Spanish wording: #issuecomment-7140235047)What
docs/d3d12_vulkan.mdmarked the console'sGetDescriptorHandleIncrementSizevalues Open (section 3.4, and sections 3.2, 4, 8.2 referred to them the same way). This measures what the retail executable does with device slot 15 (offset0x78).The index holds 943 indirect calls through
[device vtable + 0x78]. Resolvingrcxfrom each function's start with capstone, 10 reach the device (the0x148759D00BSS device global or its0x1475DF000-0x1475DF048aliases); the other 933 call the same slot on another object and are counted, not attributed. Of the 10 device sites, all fiveD3D12_DESCRIPTOR_HEAP_TYPEvalues are passed and the return is used as a slot stride (add rdi, raxin two SRV-table builders), as a heap size (imul), as a slot count (divfrom a byte count) and once cached in a global; four of the five bootstrap queries discard it.Why
So the layer knows it must answer with the host heap's increment, not a console constant: the game turns the value into sizes, divisions and GPU handle addresses, so a wrong stride corrupts every table it builds. The numeric console values stay Open (the doc says so); this also settles that the game does not hardcode them.
Nothing outside section 3.4 is reformatted; §7.1 (PR #1125) is untouched.
Tested
python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md— exit 0python -I tests/test_docs_links.py— 16 tests OKpython -I tests/test_docs_table_rows.py— 2 tests OKGPUs tested: n/a
AI-assisted: yes (OpenCode)
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:13:15Z.
Review: APPROVED
Reviewed and verified. Documents that the retail title actively derives descriptor strides, heap byte counts, and slot divisions from
ID3D12Device::GetDescriptorHandleIncrementSize(slot 15) return values rather than hardcoding console constants. Concludes that returning host Vulkan descriptor sizes is essential to avoid table corruption. Clean-room compliant.Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:13:38Z.
Recommendation: [MERGE]
Reasoning: Docs: replaces the "Open"
GetDescriptorHandleIncrementSizeentries with a static measurement of the 10 device-reaching call sites of slot 15 and how the title uses the values. Documentation only, with method and evidence described. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict withmain. Merge once the queued checks are green.Impact level: 2/10
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:32:59Z.
Native Windows 11 Verification (
75cf835c3d) — PASSDiff-audited
docs/d3d12_vulkan.md(+34/-9) and verified merged ontoorigin/main(ba8b77b390) on Windows 11 (10.0.26200, Python3.12.10with-I).Results
15(+0x78=15 * 8x64 vtable offset), all fiveD3D12_DESCRIPTOR_HEAP_TYPEarguments (0..4:CBV_SRV_UAV,SAMPLER,RTV,DSV,NUM_DESCRIPTOR_HEAP_TYPES), and host-increment forwarding inruntime/shims/d3d12_vulkan_device.cpp(GetDescriptorHandleIncrementSize).PR #1143merged ontoorigin/main):python -I tests/test_docs_links.py:Ran 17 tests — OKpython -I tests/test_docs_repo_paths.py:Ran 5 tests — OKpython -I tests/test_docs_table_rows.py:Ran 2 tests — OKpython -I tests/test_docs_list_items.py:Ran 3 tests — OKpython -I tests/test_docs_encoding.py:Ran 1 test — OKpython -I tests/test_docs_cli_flags.py:Ran 4 tests — OKpython -I tests/test_docs_env_vars.py:Ran 5 tests — OKpython -I scripts/check_no_game_data.py&tests/test_text_write_line_endings.py(3/3):OK.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T08:57:24Z.
Validation run of this PR on a Windows PC.
75cf835c3d54b2a81e95git merge --no-ffof the PR head into main was clean.This PR only changes
docs/d3d12_vulkan.md; there is no ctest test for it, so there is no red/green pair. I ran the repository's docs tests on the merged tree:test_docs_cli_flagsandtest_docs_linksfail on a README flag and on README anchors; both fail the same way on plain main, so they are not caused by this PR.gta6rt.exewas not rebuilt for this PR (the baseline main build has 703 imports).Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:39:02Z.
Merged at head
75cf835. Docs-only (docs/d3d12_vulkan.md), reviewed on this head by enlight3d, zmasi; no test applies. AI-assisted: yes.