From 1bbcf25af514a9ae24f7006747177f2d1b3b7c0d Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 11 Mar 2024 14:42:14 -0700 Subject: Link-time specialization fixes. (#3734) * Fix method synthesis logic for static differentiable methods. * Support link-time constants in thread group size reflection. --- source/slang/slang-parameter-binding.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-parameter-binding.cpp') diff --git a/source/slang/slang-parameter-binding.cpp b/source/slang/slang-parameter-binding.cpp index c2f8b2d4d..267f23e6c 100644 --- a/source/slang/slang-parameter-binding.cpp +++ b/source/slang/slang-parameter-binding.cpp @@ -2718,6 +2718,7 @@ static RefPtr collectEntryPointParameters( auto entryPointType = DeclRefType::create(astBuilder, entryPointFuncDeclRef); entryPointLayout->entryPoint = entryPointFuncDeclRef; + entryPointLayout->program = context->getTargetProgram()->getProgram(); // For the duration of our parameter collection work we will // establish this entry point as the current one in the context. -- cgit v1.2.3