summaryrefslogtreecommitdiffstats
path: root/source/core/slang-render-api-util.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-03-31 03:48:02 +0800
committerGitHub <noreply@github.com>2023-03-30 12:48:02 -0700
commite3b701c9f56f4a2fb8c56a65b5c75b49ee72ca73 (patch)
treef40f494a25e839ed84a68b85f3dd3866c978c721 /source/core/slang-render-api-util.cpp
parent72f792858a951821ff266295e018c9472fe02a14 (diff)
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 <yonghe@outlook.com>
Diffstat (limited to 'source/core/slang-render-api-util.cpp')
-rw-r--r--source/core/slang-render-api-util.cpp6
1 files changed, 5 insertions, 1 deletions
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