| 329 | } |
| 330 | |
| 331 | void UpdateOCIOGLState(OCIO::OglAppRcPtr & app, OCIOGPUTestRcPtr & test) |
| 332 | { |
| 333 | app->setPrintShader(test->isVerbose()); |
| 334 | |
| 335 | OCIO::ConstProcessorRcPtr & processor = test->getProcessor(); |
| 336 | OCIO::GpuShaderDescRcPtr & shaderDesc = test->getShaderDesc(); |
| 337 | |
| 338 | OCIO::ConstGPUProcessorRcPtr gpu; |
| 339 | if (test->isLegacyShader()) |
| 340 | { |
| 341 | gpu = processor->getOptimizedLegacyGPUProcessor(OCIO::OPTIMIZATION_DEFAULT, |
| 342 | test->getLegacyShaderLutEdge()); |
| 343 | } |
| 344 | else |
| 345 | { |
| 346 | gpu = processor->getDefaultGPUProcessor(); |
| 347 | } |
| 348 | |
| 349 | // Collect the shader program information for a specific processor. |
| 350 | gpu->extractGpuShaderInfo(shaderDesc); |
| 351 | |
| 352 | app->setShader(shaderDesc); |
| 353 | } |
| 354 | |
| 355 | void DiffComponent(const std::vector<float> & cpuImage, |
| 356 | const std::vector<float> & gpuImage, |
no test coverage detected