MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / UpdateOCIOGLState

Function UpdateOCIOGLState

tests/gpu/GPUUnitTest.cpp:331–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 9

KeyFunction · 0.85
SpecialKeyFunction · 0.85
imageColorSpace_CBFunction · 0.85
displayDevice_CBFunction · 0.85
transform_CBFunction · 0.85
look_CBFunction · 0.85
optimization_CBFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 9

setPrintShaderMethod · 0.80
isLegacyShaderMethod · 0.80
setShaderMethod · 0.80
isVerboseMethod · 0.45
getProcessorMethod · 0.45
extractGpuShaderInfoMethod · 0.45

Tested by

no test coverage detected