summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 9aa7b1203..19c3cad68 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -32,23 +32,12 @@
#include "slang-emit-glsl.h"
#include "slang-emit-hlsl.h"
#include "slang-emit-cpp.h"
+#include "slang-emit-cuda.h"
#include <assert.h>
namespace Slang {
-enum class BuiltInCOp
-{
- Splat, //< Splat a single value to all values of a vector or matrix type
- Init, //< Initialize with parameters (must match the type)
-};
-
-
-//
-
-
-//
-
EntryPointLayout* findEntryPointLayout(
ProgramLayout* programLayout,
EntryPoint* entryPoint)
@@ -444,7 +433,7 @@ Result linkAndOptimizeIR(
return SLANG_OK;
}
-String emitEntryPointSource(
+String emitEntryPointSourceFromIR(
BackEndCompileRequest* compileRequest,
Int entryPointIndex,
CodeGenTarget target,
@@ -499,6 +488,11 @@ String emitEntryPointSource(
sourceEmitter = new HLSLSourceEmitter(desc);
break;
}
+ case SourceStyle::CUDA:
+ {
+ sourceEmitter = new CUDASourceEmitter(desc);
+ break;
+ }
default: break;
}