diff options
| author | Yong He <yonghe@outlook.com> | 2021-03-15 12:59:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 12:59:58 -0700 |
| commit | 10b39e0cb545f98f1a417da8e8e52258134a3e87 (patch) | |
| tree | f57192ca5b79365a40e02d64879591ed70c9975a /tools/gfx/render.cpp | |
| parent | e428f6e6cb868e7ca487dba09f3ca5530fd85ca6 (diff) | |
Enable `gfx::CUDADevice` on linux. (#1756)
Diffstat (limited to 'tools/gfx/render.cpp')
| -rw-r--r-- | tools/gfx/render.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/gfx/render.cpp b/tools/gfx/render.cpp index e7d30b728..183afaffd 100644 --- a/tools/gfx/render.cpp +++ b/tools/gfx/render.cpp @@ -92,11 +92,15 @@ extern "C" } break; #elif SLANG_LINUX_FAMILY - case DeviceType::Default: - case DeviceType::Vulkan: - { - return createVKDevice(desc, outDevice); - } + case DeviceType::Default: + case DeviceType::Vulkan: + { + return createVKDevice(desc, outDevice); + } + case DeviceType::CUDA: + { + return createCUDADevice(desc, outDevice); + } #endif case DeviceType::CPU: { |
