shader-slang / slang

Making it easier to work with shaders
MIT License
1.97k stars 166 forks source link

Compile hlsl exported from unreal to CUDA or Pytorch CPU code #3700

Closed FishWoWater closed 6 months ago

FishWoWater commented 6 months ago

Hi, I am doing a survey on differentiable rendering. I have gone through your introductory docs but still can't get the points well, as a beginner in this field.

I am wondering one thing: whether it's possible to compile HLSL code exported from the Unreal engine (e.g. the shader graph) to CUDA or Pytorch CPU code, which is differentiable and can be executed on my Linux server?

Thank you very much for your efforts!

swoods-nv commented 6 months ago

Slang currently supports compiling HLSL compute shaders to CUDA or CPU code, but only a limited subset of intrinsics are supported, so we don't expect that all shaders from Unreal can be compiled through this pipeline.