summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorNathan V. Morrical <natemorrical@gmail.com>2021-05-26 07:15:08 -0600
committerGitHub <noreply@github.com>2021-05-26 09:15:08 -0400
commit969943f4b751d3cad8ac548f9cf0f65406935bad (patch)
treec0b6fbb7f3ab0de9f8acd6416a758795cab366a1 /source
parent2a2f50fd63281e0eba5da16e955d0afc7634e9cd (diff)
small tweak to allow for dumping out intermediate source for cuda targets (#1855)
Co-authored-by: T. Foley <tfoleyNV@users.noreply.github.com> Co-authored-by: Yong He <yonghe@outlook.com> Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'source')
-rwxr-xr-xsource/slang/slang-compiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index 9a2a69248..2428bb8fb 100755
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -2254,6 +2254,7 @@ namespace Slang
case CodeGenTarget::DXBytecodeAssembly: return ".dxbc.asm";
case CodeGenTarget::DXILAssembly: return ".dxil.asm";
case CodeGenTarget::CSource: return ".c";
+ case CodeGenTarget::CUDASource: return ".cu";
case CodeGenTarget::CPPSource: return ".cpp";
// What these should be called is target specific, but just use these exts to make clear for now
// for now
@@ -2277,6 +2278,7 @@ namespace Slang
switch (target)
{
case CodeGenTarget::CPPSource:
+ case CodeGenTarget::CUDASource:
case CodeGenTarget::CSource:
case CodeGenTarget::DXILAssembly:
case CodeGenTarget::DXBytecodeAssembly: