feat(d3d12_x): add the Vulkan backend's capability query and a GPU report #32
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!32
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/32/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 03:35 UTC · original
Dark3581:feat/vulkan-backend→main· +615 −2 · 17 files · 1 commits · merged 2026-11-22 03:38 UTCWhat
Third of the three pull requests planned in #4: the first piece of the Vulkan backend, testable without an executable.
d3d12_x_vulkan(core/libs/xdll/d3d12_x/vulkan/, linked intoab_d3d12_x.dll): loadsvulkan-1.dllfrom the system folder only, creates an instance at the loader's version (capped at 1.3) and, for every physical device, reports name, type, API and driver version, vendor and device ID,maxPushConstantsSize, subgroup size, size range, stages, operations and required-size stages, the device extensions, and 29 features, among thembufferDeviceAddress,runtimeDescriptorArray,meshShader, storage image read/write without format, barycentrics, pixel interlock,subgroupSizeControl,descriptorBuffer. A feature struct is chained only when the device's API version or extension provides it. The loader library and the instance are RAII objects. It creates no device yet;D3D12XboxCreateDevicekeeps stopping until the executable's call sites give its parameters.anybox-gpu-report.exeprints that report as JSON (exit 3 when no Vulkan loader or device).tools/gpu_report.py [--store <folder>]lists the devices and, given a shader store (#31), whether each device supports what its modules need: the union of their features, the largest push constant block, each subgroup operation per stage (bits checked againstvulkan_core.h), and wave64 modules translated without emulation.v1.4.363(2026-09-18) as3rdparty/Vulkan-Headers; the C headers areApache-2.0 OR MIT, used under MIT. The Windows CI job now checks out submodules; a missing submodule stops configuration with the command to fetch it. Relinker-only builds do not need it.Inventoryentry now names the Vulkan decision, plus aVulkanBackendentry.Tested
gpu_report,shader_storeand the crash scenarios passed 5 repeats. Relinker-only build: 26/26.gpu_report(CTest) runsanybox-gpu-report.exeand checks the JSON shape; on a machine without Vulkan it checks the error path instead (expected on CI runners).test_gpu_report(Python): requirement union, a capable device, every kind of gap (missing or unqueried feature, push constants, subgroup operation per stage, unchecked capability, native wave64), and a 64-wide device. Tools suite 60/60.check_conventions.py,debt_fold.py --check(14 fragments),progress.py --jsonpass.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>.mdvulkan_core.hfrom Vulkan-Headers v1.4.363