Skip to content

README: the D3D12 → Vulkan row says what main does today - #3619

Open
traeb0n wants to merge 1 commit into
ItsNotRexed:mainfrom
traeb0n:readme-d3d12-row
Open

traeb0n wants to merge 1 commit into
ItsNotRexed:mainfrom
traeb0n:readme-d3d12-row

Conversation

@traeb0n

@traeb0n traeb0n commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claim: #3381 (comment)

The README's "Xbox D3D12 → Vulkan" row on main f847748 said "No buffer views, root signatures, pipelines, draws, placed resources, 1D textures or swapchain yet" and "checked on one GPU". All of those have since landed. Each claim in the new row comes from main's code and its ctest targets:

The row says On main
bundles d3d12_bundle
placed resources CreatePlacedResource in d3d12_vulkan_device.cpp, d3d12_method_variants
1D textures d3d12_texture1d
buffer UAVs d3d12_buffer_uav
root signatures root_sig, root_signature, d3d12_xs_root_signature
graphics (VS, PS, GS) and compute pipelines, pipeline libraries d3d12_draw, d3d12_geometry, d3d12_compute, d3d12_pipeline_library
draws, MSAA draws d3d12_draw, d3d12_msaa_draw, d3d12_translated_draw, d3d12_m3_frame
indirect dispatches ExecuteIndirect records the compute pipeline and root arguments
depth resolves d3d12_depth_resolve
DXGI swapchains, PresentX planes dxgi_swapchain, d3d12_present, xbox_present
NVIDIA, AMD and Intel the results in #166

"Not yet" now names what is missing:

Docs tests pass: test_docs_list_items, test_docs_links, test_docs_repo_paths. No runtime change.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

@shdann

shdann commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Read 7e34745 against the code on the same commit (documentation-only change; nothing was built or run, no GPU, no game files).

One statement in the new row does not match the code: "texture views, buffer UAVs and samplers (they go into the bindless set)". Buffer UAVs take a different path.

In runtime/shims/d3d12_vulkan_device.cpp on this head, CreateUnorderedAccessView (around line 5192) sends any resource without an image straight to write_buffer_uav (if (!r->image()) return write_buffer_uav(...)). That function (ending around line 5189) builds a g::Buffer from the buffer's GPU virtual address plus FirstElement * unit, encodes it with g::encode and memcpys the words into the destination descriptor (and the counter's words after them, when there is one), then returns. There is no bindless-set update on that path; only texture views and samplers enter the set, as the comment above CreateUnorderedAccessView says for texture UAVs ("set 0 also holds it as a storage image").

Suggestion: move the parenthesis so it covers texture views and samplers only, for example "texture views and samplers (they go into the bindless set), buffer UAVs (written as address descriptors)".

I did not check the other additions in the row. AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the README row against main (f847748c) and ran the docs test at 7e347450:

  • Every capability named in the new row has a target or code path on main: d3d12_bundle, d3d12_texture1d, d3d12_buffer_uav, d3d12_geometry, d3d12_pipeline_library, d3d12_draw, d3d12_compute, d3d12_method_variants, d3d12_xs_root_signature, plus CreatePlacedResource/CreatePlacedResource1/2 in d3d12_vulkan_device.cpp and the PresentX plane/compositor code.
  • The "not yet" list is also supported: mesh-shader draws, indirect-draw state and stream output are still refused/not implemented in the device.
  • tests/test_docs_links.py -> 5 tests OK; git diff --check clean.

The row is long, but it accurately replaces a stale "no pipelines/draws/swapchain yet" claim. No blocking issue from me.

The row still said "No buffer views, root signatures, pipelines, draws, placed
resources, 1D textures or swapchain yet" and "checked on one GPU". All of those
are on main now (d3d12_draw, d3d12_msaa_draw, root_sig, d3d12_geometry,
d3d12_pipeline_library, d3d12_texture1d, d3d12_buffer_uav, dxgi_swapchain,
xbox_present), and contributors test on NVIDIA, AMD and Intel (ItsNotRexed#166). What is
missing is named instead: mesh-shader draws (no DispatchMesh), the draw state
of indirect draws, stream output (no SOSetTargets), and the real executable.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@traeb0n

traeb0n commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main aa2988c (326ebb1). Thanks @shdann, you're right: buffer UAVs are written as address descriptors (write_buffer_uav), not into the bindless set. The row now says "texture views and samplers (they go into the bindless set), buffer UAVs (written as address descriptors)". I rechecked the "not yet" list on this main: still no DispatchMesh or SOSetTargets in the runtime, and #1712/#1865 are still open.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants