MCPcopy Create free account
hub / github.com/NVIDIA-RTX/STBN / WriteOutPdfMinMaxFile

Function WriteOutPdfMinMaxFile

Libraries/Vector/Debug/DebugFileExport.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "stb_image_write.h"
28
29void WriteOutPdfMinMaxFile(const std::string& baseOutputFileName, const Dimensions3D& dims, float pdfMin, float pdfMax, float isAvg, float lumMax)
30{
31 std::stringstream ss;
32 ss << baseOutputFileName << "_" << dims.x << "x" << dims.y << "x" << dims.z;
33 std::string fileName = ss.str();
34
35 std::ofstream file;
36 file.open(fileName);
37 file << pdfMin << std::endl;
38 file << pdfMax << std::endl;
39 file << isAvg << std::endl;
40 file << lumMax << std::endl;
41 file.close();
42}
43
44void WriteOutUVAndDirsFile(const ImportanceSamplingData& isData, const std::string baseOutputFileName, const Dimensions3D& dims)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected