yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1#include "slang-entrypoint.h" 2 3#include "../util/record-utility.h" 4 5namespace SlangRecord 6{ 7EntryPointRecorder ::EntryPointRecorder ( 8SessionRecorder * sessionRecorder , 9 slang::IEntryPoint * entryPoint , 10RecordManager * recordManager ) 11 :IComponentTypeRecorder (entryPoint ,recordManager ) 12 ,m_sessionRecorder (sessionRecorder ) 13 ,m_actualEntryPoint (entryPoint ) 14{ 15SLANG_RECORD_ASSERT (m_actualEntryPoint != nullptr ); 16slangRecordLog (LogLevel ::Verbose ,"%s: %p\n" ,__PRETTY_FUNCTION__ ,entryPoint ); 17} 18 19ISlangUnknown * EntryPointRecorder ::getInterface (const Guid & guid ) 20{ 21if (guid == IEntryPointRecorder ::getTypeGuid ()) 22 { 23return static_cast < IEntryPointRecorder *> (this ); 24 } 25else 26return nullptr ; 27} 28 29SLANG_NO_THROW slang::FunctionReflection * EntryPointRecorder ::getFunctionReflection () 30{ 31return m_actualEntryPoint -> getFunctionReflection (); 32} 33 34}// namespace SlangRecord