summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-cuda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
-rw-r--r--source/slang/slang-emit-cuda.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp
index f7850179d..eda30b956 100644
--- a/source/slang/slang-emit-cuda.cpp
+++ b/source/slang/slang-emit-cuda.cpp
@@ -840,11 +840,6 @@ void CUDASourceEmitter::handleRequiredCapabilitiesImpl(IRInst* inst)
}
}
-void CUDASourceEmitter::emitLayoutDirectivesImpl(TargetRequest* targetReq)
-{
- SLANG_UNUSED(targetReq);
-}
-
void CUDASourceEmitter::emitVectorTypeNameImpl(IRType* elementType, IRIntegerValue elementCount)
{
m_writer->emit(getVectorPrefix(elementType->getOp()));
@@ -933,10 +928,12 @@ void CUDASourceEmitter::emitMatrixLayoutModifiersImpl(IRVarLayout* layout)
Super::emitMatrixLayoutModifiersImpl(layout);
}
-void CUDASourceEmitter::emitPreprocessorDirectivesImpl()
+void CUDASourceEmitter::emitPreModuleImpl()
{
SourceWriter* writer = getSourceWriter();
+ // Emit generated types/functions
+
writer->emit("\n");
{
@@ -961,6 +958,7 @@ void CUDASourceEmitter::emitPreprocessorDirectivesImpl()
}
}
+
bool CUDASourceEmitter::tryEmitGlobalParamImpl(IRGlobalParam* varDecl, IRType* varType)
{
// A global shader parameter in the IR for CUDA output will