MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / ShaderFactory

Method ShaderFactory

src/engine/ShaderFactory.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34using namespace donut::engine;
35
36ShaderFactory::ShaderFactory(nvrhi::DeviceHandle rendererInterface,
37 std::shared_ptr<IFileSystem> fs,
38 const std::filesystem::path& basePath)
39 : m_Device(rendererInterface)
40 , m_fs(fs)
41 , m_basePath(basePath)
42{
43#if DONUT_WITH_AFTERMATH
44 if (m_Device->isAftermathEnabled())
45 m_Device->getAftermathCrashDumpHelper().registerShaderBinaryLookupCallback(this, std::bind(&ShaderFactory::FindShaderFromHash, this, std::placeholders::_1, std::placeholders::_2));
46#endif
47}
48
49ShaderFactory::~ShaderFactory()
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected