zlacker

[return to "Building the DirectX shader compiler better than Microsoft?"]
1. flohof+h7[view] [source] 2024-02-10 11:03:35
>>emidoo+(OP)
A great overview of the terrible mess that underlies cross-3D-API shader compilation (and even though it focuses on D3D and Microsoft, it's not much better on other 3D APIs - for instance you simply can't cross-compile Metal shaders from a Linux host - only from macOS and - somewhat recently - Windows).

If the Mach team can pull off this whole "Zig as a cross-3D-API shader compiler" and make it work as smoothly as "Zig as a cross-compilation toolchain", then this would be pretty much the biggest thing in computer graphics since 1995 or so :)

◧◩
2. matheu+RI2[view] [source] 2024-02-11 14:41:22
>>flohof+h7
> for instance you simply can't cross-compile Metal shaders from a Linux host

Why not? Doesn't that just mean that nobody has implemented it yet?

◧◩◪
3. flohof+m03[view] [source] 2024-02-11 17:01:35
>>matheu+RI2
The Metal shader compiler is only distributed as binary blobs for Mac and Windows. Reverse engineering of the undocumented output is possible of course, but that also means keeping track of all the changes Apple does to the output format in new versions.
[go to top]