| 34 | using namespace donut::engine; |
| 35 | |
| 36 | ShaderFactory::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 | |
| 49 | ShaderFactory::~ShaderFactory() |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected