From 0b61643bf82e2dd44317f6ff83b1a088e337610f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 8 Oct 2019 14:29:15 -0400 Subject: 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 --- source/slang/slang-emit-hlsl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/slang/slang-emit-hlsl.cpp') 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()) + if (auto decor = param->findDecoration()) { 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; } } -- cgit v1.2.3