Hacker News new | ask | show | jobs
Official DirectX headers available under an open source license (github.com)
25 points by traxmaxx 1995 days ago
2 comments

> On Windows, a wchar_t is 2 bytes, but on Linux it is typically 4 bytes. The D3D12 ABI for WSL uses the native 4-byte wchar_t, to enable applications and the runtime to use the system C library to perform string manipulation.

sooo does that mean UTF-32 or UTF-16 with two zero bytes per character?

since this is mit licensed, wouldn't it be possible to create a vulkan <-> dx translation layer so that even without wsl dx12 could be used on linux?
DXVK is what you're thinking of.

https://github.com/doitsujin/dxvk

I think dx12 is feature complete, but some features are missing from earlier versions.

Wine and valve are working on this currently. Have a bunch of repos for it.