Skip to content
Leonida D3D12 to Vulkan: The Graphics Layer Still in Progress
Official GTA VI screenshot, Rockstar Games. Game art, not build output: the Leonida project does not boot. · Project guide: the GTA 6 recompilation project.
  • Boots: No
  • Release: None
  • File: None

Leonida D3D12 to Vulkan: The Graphics Layer Still in Progress

The Xbox D3D12 to Vulkan layer is the graphics heart of Leonida and it is still in progress. This guide explains what it does and what stays open.

Contents
  1. The Role of the Graphics Layer
  2. DXBC to DXIL and D3D12
  3. RDNA2 Shaders to SPIR-V and Vulkan
  4. D3D12 to Vulkan, In Progress
  5. Ray Tracing BVH, In Progress
  6. What Stays Open
  7. Conclusion
  8. Frequently Asked Questions

The Role of the Graphics Layer

Graphics work is the heart of any port that aims to show a game on a different system, and Leonida is no exception. The Xbox version of the game was built for Xbox graphics facilities, and native Windows with Vulkan needs those facilities translated, converted, and answered in a different form. The graphics layer is the set of parts that does that work. It sits between the game code, the shims, and the Windows graphics facilities, and it must carry rendering work across that boundary faithfully.

Leonida graphics layer work covers several linked conversions. RDNA2 shaders are translated to SPIR-V and Vulkan. DXBC is converted to DXIL and D3D12. The Xbox D3D12 work is then carried to Vulkan. Each conversion has its own job, and the graphics layer as a whole is judged by how those jobs fit together, not by any one of them alone. A shader that translates correctly has not yet been shown rendering through the full layer, and a conversion that completes has not yet been shown carrying real game rendering.

The project states the position plainly: D3D12 to Vulkan work is in progress, and ray tracing BVH work is in progress. Those two statements are the frame for this guide. Everything else in this guide explains what each part does, what has been measured, and what remains open, without filling the open work with assumption.

DXBC to DXIL and D3D12

DXBC is a shader bytecode form, and DXIL is the intermediate language used by Direct3D 12. Converting DXBC to DXIL and D3D12 is a step that moves shader material from one representation to another that the D3D12 path can use. The conversion is part of the graphics pipeline, and it sits before the D3D12 to Vulkan step. Without it, shader material in DXBC form would not be in the form the later steps expect.

The conversion should be read as a translation of representation, not as rendering. A converted shader is material prepared for a later step. It has not been shown drawing a frame, because the game does not boot and the D3D12 to Vulkan layer that would carry it to Vulkan is still in progress. The value of the conversion is that it prepares material in the right form, so that later steps can work on it without first solving the representation problem.

Readers sometimes ask whether a DXBC conversion count exists. The stated counts in the project are shader translation counts, not DXBC conversion counts, and this guide does not invent a count for this step. The shader counts are covered in the next sections and in the shader guide, and they belong to shader translation, which is a distinct step from DXBC conversion even though both concern shader material.

RDNA2 Shaders to SPIR-V and Vulkan

RDNA2 shaders are translated to SPIR-V and Vulkan. SPIR-V is the intermediate form that Vulkan tooling uses, and Vulkan is the graphics API on the Windows side of the port. Translating a shader means rewriting its instructions into the target form while preserving what the shader is meant to do. Validation then checks that the translated shader is well formed and usable. Translation without validation would be a weaker result, and the project reports the two together: translated and validated.

The measured result is 26,503 shaders translated and validated, made up of 2,236 vertex shaders, 12,101 pixel shaders, 2,689 compute shaders, 9,282 mesh shaders, and 195 geometry shaders, with 23,841 wave64 shaders among them. The breakdown matters, because different shader stages do different work in rendering. Vertex shaders, pixel shaders, compute shaders, mesh shaders, and geometry shaders are not interchangeable, and a count that lumps them together without a breakdown would hide where the work actually happened.

The guide to shader translation for Leonida explains the translation options and fallbacks in practical detail, including wave64 emulation controls and fallback options for shader features. This guide keeps the focus on the graphics layer: shader translation prepares Vulkan-ready shader material at scale, and the D3D12 to Vulkan layer is the part that must carry rendering work that uses that material. The two parts are linked, and neither one completes the other.

Shader stageCount translated and validatedNote
Vertex shaders2,236Part of the 26,503 total
Pixel shaders12,101Largest share of the total
Compute shaders2,689Part of the 26,503 total
Mesh shaders9,282Part of the 26,503 total
Geometry shaders195Smallest share of the total

D3D12 to Vulkan, In Progress

The D3D12 to Vulkan step carries Direct3D 12 work to Vulkan. It is the step that connects the D3D12 side of the port, including converted DXBC material and d3d12_xs shim calls, to the Vulkan side, including translated SPIR-V shaders. The project states that this step is in progress. That statement should be taken at face value: the layer exists as work under way, not as a finished layer that has been shown carrying the game.

An environment variable selects the Vulkan path for this work. Setting LEONIDA_D3D12 to vulkan selects Vulkan for D3D12 handling. The variable is a configuration control, not a completion claim. It lets a builder or tester choose the path that the in-progress layer is developing, and it makes the choice explicit rather than hidden. A builder who sets the variable is choosing a path under development, and should read results in that light.

LEONIDA_D3D12=vulkan

The explanation of how the Leonida port works places this layer among the other port parts, including shims, shader translation, asset export, and the loader. Readers who want the whole sequence should read that guide, because the D3D12 to Vulkan layer cannot be understood in isolation. It depends on shader material, on shim calls, and on a loader that can start the program whose rendering it would carry, and the loader currently runs a stand-in.

Ray Tracing BVH, In Progress

Ray tracing work in Leonida concerns BVH structures, which organise scene geometry so that ray tracing can find intersections efficiently. The project states that ray tracing BVH work is in progress. As with the D3D12 to Vulkan layer, that statement describes work under way, not a finished feature that has been shown in the game. BVH work is graphics work, and it sits alongside the main graphics layer rather than replacing it.

An environment variable relates to this work. LEONIDA_RT_AS with the value khr relates to ray tracing acceleration structure handling. Like the D3D12 variable, it is a configuration control for work under development. It does not finish the BVH work, and it does not show ray tracing running in the game, because the game does not boot. It lets the in-progress work be configured and tested in the way the project defines.

LEONIDA_RT_AS=khr

Ray tracing should not be read as a separate promise about the game. It is one graphics area among several, and its in-progress status matches the in-progress status of the D3D12 to Vulkan layer. A reader who checks the status record will find both items listed as in progress, and that pairing is the accurate summary: two graphics areas under development, neither shown carrying game rendering, both part of the same unfinished graphics layer.

What Stays Open

What stays open is the demonstration that the graphics layer carries real game rendering. Shader translation is measured, DXBC conversion is described, the D3D12 to Vulkan layer is in progress, ray tracing BVH work is in progress, and the loader runs a stand-in. No part of that list is a rendered frame from the game, and no part should be read as one. The open work is not a missing detail: it is the central graphics demonstration itself.

The missing executable is part of what stays open as well. Without game code, the graphics layer cannot be exercised against the rendering work that game code would present. The status and progress record for Leonida keeps the graphics items, the loader item, and the missing executable item as separate entries, so that a reader can see which items are measured, which are in progress, and which are absent. That separation is the honest way to track a graphics layer that is still being built.

Builders and readers should therefore judge graphics progress by three questions: what was translated or converted, what was validated, and what was shown rendering. Translation and validation have measured answers in this guide. Rendering has no demonstrated answer yet, and this guide does not invent one. When a rendered result is demonstrated with evidence, it will belong in the status record, and it will change the reading of every section in this guide.

The graphics layer is still in progress. Do not read shader counts or conversion steps as proof that the game renders, because the game does not boot and there is no rendered game frame to judge.

Conclusion

The Leonida graphics layer converts DXBC to DXIL and D3D12, translates RDNA2 shaders to SPIR-V and Vulkan at a measured scale of 26,503 shaders translated and validated, and carries D3D12 work to Vulkan through a layer that is still in progress, with ray tracing BVH work also still in progress. Environment variables select the Vulkan path and configure ray tracing acceleration structure handling for that in-progress work.

The honest endpoint is unchanged: the game does not boot, there are 0 releases and 0 tags, and the loader runs a stand-in. The graphics layer prepares rendering material at scale and develops the layers that would carry it, and it has not yet been shown carrying the game itself. That distinction, between preparation and demonstration, is the whole story of this layer for now.

Frequently Asked Questions

Is the D3D12 to Vulkan layer finished?

No. The project states that D3D12 to Vulkan work is in progress. Shader translation is measured separately, and it does not finish this layer.

How many shaders have been translated and validated?

The project reports 26,503 shaders translated and validated, including 2,236 vertex, 12,101 pixel, 2,689 compute, 9,282 mesh, and 195 geometry shaders, with 23,841 wave64 shaders among them.

Does shader translation mean the game renders?

No. Translation prepares Vulkan-ready shader material. The game does not boot, the graphics layer is still in progress, and no rendered game frame has been demonstrated.