Issue |
144738
|
Summary |
[HLSL][DXC Driver] Add preprocessor definition when `-metal` is passed
|
Labels |
HLSL
|
Assignees |
|
Reporter |
llvm-beanz
|
**Is your feature request related to a problem? Please describe.**
We recently added a `-metal` flag to DXC to aid with cross-platform development workflows. When that flag is passed we should set a new preprocessor define in InitPreprocessor (something like `__metal__`) to denote that we're targeting Metal. That will allow for code portability to work around differences in behavior between DX, VK and MTL.
We should ensure this implementation aligns with https://github.com/microsoft/DirectXShaderCompiler/issues/7553.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs