summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cpp.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-10-08 08:37:53 -0400
committerGitHub <noreply@github.com>2019-10-08 08:37:53 -0400
commitdc1e735bbc6a35d4a1d5c1ec720a7a95c0555f49 (patch)
tree7020737abd74ccfcb6d24e1f294b3193867b3042 /source/slang/slang-emit-cpp.cpp
parent7c8527d20e433c3a10736136d31e4cd882a3baaa (diff)
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).
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
-rw-r--r--source/slang/slang-emit-cpp.cpp4
1 files changed, 2 insertions, 2 deletions
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);