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

Method finalize

src/OpenColorIO/GPUProcessor.cpp:73–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void GPUProcessor::Impl::finalize(const OpRcPtrVec & rawOps, OptimizationFlags oFlags)
74{
75 AutoMutex lock(m_mutex);
76
77 // Prepare the list of ops.
78
79 m_ops = rawOps;
80
81 m_ops.finalize();
82 m_ops.optimize(oFlags);
83 m_ops.validateDynamicProperties();
84
85 // Is NoOp ?
86 m_isNoOp = m_ops.isNoOp();
87
88 // Does the color processing introduce crosstalk between the pixel channels?
89 m_hasChannelCrosstalk = m_ops.hasChannelCrosstalk();
90
91 // Calculate and assemble the GPU cache ID from the ops.
92
93 std::stringstream ss;
94 ss << "GPU Processor: oFlags " << oFlags
95 << " ops : " << m_ops.getCacheID();
96
97 m_cacheID = ss.str();
98}
99
100void GPUProcessor::Impl::extractGpuShaderInfo(GpuShaderCreatorRcPtr & shaderCreator) const
101{

Callers 1

extractGpuShaderInfoMethod · 0.45

Calls 5

optimizeMethod · 0.80
isNoOpMethod · 0.45
hasChannelCrosstalkMethod · 0.45
getCacheIDMethod · 0.45

Tested by

no test coverage detected