diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-08 14:29:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-08 14:29:15 -0400 |
| commit | 0b61643bf82e2dd44317f6ff83b1a088e337610f (patch) | |
| tree | 17ba46b9c42fdea9f9ac380215c51cc40740b0b5 /source/slang/slang-emit-hlsl.cpp | |
| parent | c61d529d9aec30dd80e0e915cfad01d42be7e153 (diff) | |
Fixed from Review of Entry Point decoration #1068 (#1072)
* Remove typo around GeometryPrimitiveTypeDecoration
* * GeometryPrimitiveTypeDecoration -> GeometryInputPrimitiveTypeDecoration (to try and closer match meaning and the Modifier name)
* Remove a small problem around definition of IRGeometryPrimitiveTypeDecoration
* Fix comment around IRStreamOutputTypeDecoration
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
| -rw-r--r-- | source/slang/slang-emit-hlsl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 64dfb385a..565f5ae94 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -662,15 +662,15 @@ void HLSLSourceEmitter::emitSemanticsImpl(IRInst* inst) void HLSLSourceEmitter::emitSimpleFuncParamImpl(IRParam* param) { - if (auto decor = param->findDecoration<IRGeometryPrimitiveTypeDecoration>()) + if (auto decor = param->findDecoration<IRGeometryInputPrimitiveTypeDecoration>()) { switch (decor->op) { - case kIROp_TrianglePrimitiveTypeDecoration: m_writer->emit("triangle "); break; - case kIROp_PointPrimitiveTypeDecoration: m_writer->emit("point "); break; - case kIROp_LinePrimitiveTypeDecoration: m_writer->emit("line "); break; - case kIROp_LineAdjPrimitiveTypeDecoration: m_writer->emit("lineadj "); break; - case kIROp_TriangleAdjPrimitiveTypeDecoration: m_writer->emit("triangleadj "); break; + case kIROp_TriangleInputPrimitiveTypeDecoration: m_writer->emit("triangle "); break; + case kIROp_PointInputPrimitiveTypeDecoration: m_writer->emit("point "); break; + case kIROp_LineInputPrimitiveTypeDecoration: m_writer->emit("line "); break; + case kIROp_LineAdjInputPrimitiveTypeDecoration: m_writer->emit("lineadj "); break; + case kIROp_TriangleAdjInputPrimitiveTypeDecoration: m_writer->emit("triangleadj "); break; default: SLANG_ASSERT(!"Unknown primitive type"); break; } } |
