summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 57d603940..a1da1bbdf 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -693,6 +693,20 @@ void HLSLSourceEmitter::emitLoopControlDecorationImpl(IRLoopControlDecoration* d
}
}
+void HLSLSourceEmitter::emitFuncDecorationImpl(IRDecoration* decoration)
+{
+ switch( decoration->op )
+ {
+ case kIROp_NoInlineDecoration:
+ m_writer->emit("[noinline]\n");
+ break;
+
+ default:
+ break;
+ }
+}
+
+
void HLSLSourceEmitter::emitSimpleValueImpl(IRInst* inst)
{
switch (inst->op)