From dc1e735bbc6a35d4a1d5c1ec720a7a95c0555f49 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 8 Oct 2019 08:37:53 -0400 Subject: Feature/ir entry point profile (#1068) * Split out EntryPointParamDecoration. * Add profile to EntryPointDecoration. * WIP for GS handling for GLSL. * WIP for StreamOut GLSL * Fixed GLSL geometry output. * Clean up - remove unneeded/commented out code from the entry point change. * Use Op nums to identify GeometryTypeDecorations (as opposed to contained enum). --- source/slang/slang-emit-cpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-emit-cpp.cpp') diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 1f38512b4..3727bf45e 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -2343,7 +2343,7 @@ void CPPSourceEmitter::emitOperandImpl(IRInst* inst, EmitOpInfo const& outerPre { String name = getName(inst); - if (inst->findDecorationImpl(kIROp_EntryPointDecoration)) + if (inst->findDecorationImpl(kIROp_EntryPointParamDecoration)) { // It's an entry point parameter // The parameter is held in a struct so always deref @@ -2695,7 +2695,7 @@ void CPPSourceEmitter::emitModuleImpl(IRModule* module) { auto inst = action.inst; - if (inst->findDecorationImpl(kIROp_EntryPointDecoration)) + if (inst->findDecorationImpl(kIROp_EntryPointParamDecoration)) { // Should only be one instruction marked this way SLANG_ASSERT(entryPointGlobalParams == nullptr); -- cgit v1.2.3