MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getTempFilePath

Function getTempFilePath

Source/Falcor/Core/Platform/OS.cpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261std::filesystem::path getTempFilePath()
262{
263 static std::mutex mutex;
264 std::lock_guard<std::mutex> guard(mutex);
265 char* name = std::tmpnam(nullptr);
266 if (name == nullptr)
267 {
268 FALCOR_THROW("Failed to create temporary file path.");
269 }
270 return name;
271}
272
273std::string readFile(const std::filesystem::path& path)
274{

Callers 2

openEditorMethod · 0.85
onGuiRenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected