MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / PPMvsPPM

Method PPMvsPPM

Common/rendercheck_d3d11.cpp:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool CheckRenderD3D11::PPMvsPPM(const char *src_file, const char *ref_file, const char *exec_path,
110 const float epsilon, const float threshold)
111{
112 char *ref_file_path = sdkFindFilePath(ref_file, exec_path);
113
114 if (ref_file_path == NULL)
115 {
116 printf("CheckRenderD3D11::PPMvsPPM unable to find <%s> in <%s> Aborting comparison!\n", ref_file, exec_path);
117 printf(">>> Check info.xml and [project//data] folder <%s> <<<\n", ref_file);
118 printf("Aborting comparison!\n");
119 printf(" FAILURE!\n");
120 return false;
121 }
122
123 return sdkComparePPM(src_file,ref_file_path,epsilon,threshold,true) == true;
124}

Callers 4

displayFunction · 0.45
displayFunction · 0.45
autoTestFunction · 0.45
autoTestFunction · 0.45

Calls 2

sdkFindFilePathFunction · 0.85
sdkComparePPMFunction · 0.85

Tested by

no test coverage detected