Skip to content

Commit 8cd77f1

Browse files
committed
Document that findEntryPointByName is not applicable if there is no [shader(...)] attribute
1 parent f7b9745 commit 8cd77f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/slang.h

+3
Original file line numberDiff line numberDiff line change
@@ -4356,6 +4356,9 @@ struct IModule : public IComponentType
43564356
{
43574357
SLANG_COM_INTERFACE(0xc720e64, 0x8722, 0x4d31, {0x89, 0x90, 0x63, 0x8a, 0x98, 0xb1, 0xc2, 0x79})
43584358

4359+
/// Find and an entry point by name.
4360+
/// Note that this does not work in case the function is not explicitly designated as an entry point, e.g. using a `[shader("...")]` attribute.
4361+
/// In such cases, consider using `IModule::findAndCheckEntryPoint` instead.
43594362
virtual SLANG_NO_THROW SlangResult SLANG_MCALL
43604363
findEntryPointByName(char const* name, IEntryPoint** outEntryPoint) = 0;
43614364

0 commit comments

Comments
 (0)