mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1143] docs(d3d12_vulkan): what the title does with GetDescriptorHandleIncrementSize (D3D12-DESCRIPTOR-INCREMENTS) #1176
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1176
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1143
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:docs/b2📝 Commits (1)
75cf835docs(d3d12_vulkan): what the title does with GetDescriptorHandleIncrementSize📊 Changes
1 file changed (+34 additions, -9 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+34 -9)📄 Description
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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.