protonscr

How to port a dx12 renderer?

vkd3dclosed
HansKristian-Work/vkd3d-proton#2584 · opened 2025-08-19 by star-hengxing · updated 2025-10-21 · 2 comments · github
Sstar-hengxing 2025-08-19 github

Hi, I have a renderer that uses the dx12 ray tracing API and I want to port it to Linux. I saw that the readme supports Linux native, but it only built a dynamic library and did not provide the dx12 related API header files.
How should I proceed with the porting? Any suggestions are welcome.

HHansKristian-Work maintainer 2025-08-20 github

https://github.com/HansKristian-Work/d3d12-replayer is an example of how it can be done. Do note that this isn't an explicitly supported feature and it may break at any time. Most important part is using the vkd3d-proton generated headers. Do not use Microsoft headers on Linux since they don't have quite the same ABI. Swapchains can bypass DXGI and use the swapchain + surface factory private interfaces.

HHansKristian-Work maintainer 2025-10-21 github

Closing as no further action needed.

Nothing extracted yet.