diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-05 13:01:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 13:01:06 -0700 |
| commit | 92fc3aaa835315ff08750c7b5a7498b7228e2c33 (patch) | |
| tree | 162b2b4b9411ede11d6a53015713ab431283f6c6 /source/slang/slang-emit-hlsl.cpp | |
| parent | 389be08822ba554327b5948266f54acf8a312fe7 (diff) | |
| parent | e3e1cf2045f14837cfecb14e252c0e1083787b93 (diff) | |
Merge branch 'master' into findtypebynamefix
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-hlsl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 5ebd7e9fc..83bfb8f2a 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -673,9 +673,16 @@ void HLSLSourceEmitter::emitVectorTypeNameImpl(IRType* elementType, IRIntegerVal void HLSLSourceEmitter::emitLoopControlDecorationImpl(IRLoopControlDecoration* decl) { - if (decl->getMode() == kIRLoopControl_Unroll) + switch (decl->getMode()) { + case kIRLoopControl_Unroll: m_writer->emit("[unroll]\n"); + break; + case kIRLoopControl_Loop: + m_writer->emit("[loop]\n"); + break; + default: + break; } } |
