Helper method to build unit tests
| 39 | |
| 40 | // Helper method to build unit tests |
| 41 | void AddExponentWithLinear(OCIOGPUTest & test, |
| 42 | OCIO::TransformDirection direction, |
| 43 | const double(&gamma)[4], |
| 44 | const double(&offset)[4], |
| 45 | OCIO::NegativeStyle style, |
| 46 | float epsilon) |
| 47 | { |
| 48 | OCIO::ExponentWithLinearTransformRcPtr exp = OCIO::ExponentWithLinearTransform::Create(); |
| 49 | exp->setDirection(direction); |
| 50 | exp->setGamma(gamma); |
| 51 | exp->setOffset(offset); |
| 52 | exp->setNegativeStyle(style); |
| 53 | |
| 54 | OCIO_NAMESPACE::ConfigRcPtr config = OCIO_NAMESPACE::Config::Create(); |
| 55 | |
| 56 | test.setErrorThreshold(epsilon); |
| 57 | test.setProcessor(config, exp); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | OCIO_ADD_GPU_TEST(ExponentOp, legacy_shader_v1) |
no test coverage detected