From cc412af89e54b04ead508ca84825a18d001b92d0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 31 Aug 2023 13:49:40 -0700 Subject: Add SPIRV atomics intrinsics and fix buffer layout lowering. (#3170) * Fix atomics intrinsics and buffer layout lowering. * Fix. * Add more test. * Fix. --------- Co-authored-by: Yong He --- source/compiler-core/slang-dxc-compiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/compiler-core') diff --git a/source/compiler-core/slang-dxc-compiler.cpp b/source/compiler-core/slang-dxc-compiler.cpp index 9428d0d26..6956a3627 100644 --- a/source/compiler-core/slang-dxc-compiler.cpp +++ b/source/compiler-core/slang-dxc-compiler.cpp @@ -26,8 +26,12 @@ // Enable DXIL by default unless told not to #ifndef SLANG_ENABLE_DXIL_SUPPORT +#if SLANG_APPLE_FAMILY +# define SLANG_ENABLE_DXIL_SUPPORT 0 +#else # define SLANG_ENABLE_DXIL_SUPPORT 1 #endif +#endif // Enable calling through to `dxc` to // generate code on Windows. -- cgit v1.2.3