From e3b701c9f56f4a2fb8c56a65b5c75b49ee72ca73 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 31 Mar 2023 03:48:02 +0800 Subject: Enable CUDA render api on unix (#2757) * Remove extra qualification in cuda device impl Only MSVC accepts this illegal code * Enable CUDA render api on unix --------- Co-authored-by: Yong He --- source/core/slang-render-api-util.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/slang-render-api-util.cpp b/source/core/slang-render-api-util.cpp index 6c00e72b0..bc15a8164 100644 --- a/source/core/slang-render-api-util.cpp +++ b/source/core/slang-render-api-util.cpp @@ -277,7 +277,7 @@ static bool _canLoadSharedLibrary(const char* libName) default: break; } #elif SLANG_UNIX_FAMILY - // Assume on unix target we have Opengl and Vulkan for now + // Assume on unix target we never have D3D switch (type) { case RenderApiType::OpenGl: @@ -289,6 +289,10 @@ static bool _canLoadSharedLibrary(const char* libName) { return true; } + case RenderApiType::CUDA: + { + return true; + } default: break; } #endif -- cgit v1.2.3