Helper method to build unit tests
| 19 | |
| 20 | // Helper method to build unit tests |
| 21 | void AddExponent(OCIOGPUTest & test, |
| 22 | OCIO::TransformDirection direction, |
| 23 | const double(&gamma)[4], |
| 24 | OCIO::NegativeStyle style, |
| 25 | float epsilon, |
| 26 | Version ver) |
| 27 | { |
| 28 | OCIO::ExponentTransformRcPtr exp = OCIO::ExponentTransform::Create(); |
| 29 | exp->setNegativeStyle(style); |
| 30 | exp->setDirection(direction); |
| 31 | exp->setValue(gamma); |
| 32 | |
| 33 | OCIO_NAMESPACE::ConfigRcPtr config = OCIO_NAMESPACE::Config::Create(); |
| 34 | config->setMajorVersion(ver); |
| 35 | |
| 36 | test.setErrorThreshold(epsilon); |
| 37 | test.setProcessor(config, exp); |
| 38 | } |
| 39 | |
| 40 | // Helper method to build unit tests |
| 41 | void AddExponentWithLinear(OCIOGPUTest & test, |
no test coverage detected