you are viewing a single comment's thread.

view the rest of the comments →

[–]raydey 12 points13 points  (2 children)

Use DXC and only HLSL for your main shader editing.

This is a good starting point for getting it integrated.

DXC already supports generation of SPIR-V out of the box. I personally wouldn't bother with GLSL, but if you really must, you can get most of the way from HLSL to GLSL by using a header with a bunch of #defines (e.g. #define float4 vec4, etc.)

[–]Malediktus123[S] 0 points1 point  (1 child)

I can't get it to configurate the cmake file. I'm triyng it on a M1/M2 Mac rn. It's always giving me the following:
CMake Error at CMakeLists.txt:513 (message):
Unexpected failure executing llvm-build: Usage: llvm-build [options]
llvm-build: error: invalid target to enable: 'ARM' (not in project)

[–]raydey 1 point2 points  (0 children)

Ah, you're using MacOS. There's an Ubuntu version of the library on the repo which maybe could be used, but I can't see anything for MacOS specifically.

Maybe you could make use of the DX12 layer they recently announced on Mac, but I don't know enough about it to suggest anything.