Helper method to build unit tests
| 24 | |
| 25 | // Helper method to build unit tests |
| 26 | void AddLogTest(OCIOGPUTest & test, |
| 27 | OCIO::TransformDirection direction, |
| 28 | float base, |
| 29 | float epsilon) |
| 30 | { |
| 31 | OCIO::LogTransformRcPtr log = OCIO::LogTransform::Create(); |
| 32 | log->setDirection(direction); |
| 33 | log->setBase(base); |
| 34 | |
| 35 | test.setProcessor(log); |
| 36 | |
| 37 | test.setErrorThreshold(epsilon); |
| 38 | |
| 39 | // TODO: Would like to be able to remove the setTestNaN(false) and |
| 40 | // setTestInfinity(false) from all of these tests. |
| 41 | test.setTestInfinity(false); |
| 42 | } |
| 43 | |
| 44 | |
| 45 | OCIO_ADD_GPU_TEST(LogTransform, LogBase_10_legacy) |
no test coverage detected