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

Method addDynamicProperty

src/OpenColorIO/GpuShaderDesc.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void GpuShaderCreator::addDynamicProperty(DynamicPropertyRcPtr & prop)
214{
215 if (hasDynamicProperty(prop->getType()))
216 {
217 // Dynamic property is already there.
218 std::ostringstream oss;
219 oss << "Dynamic property already here: " << prop->getType() << ".";
220 throw Exception(oss.str().c_str());
221 }
222
223 getImpl()->m_dynamicProperties.push_back(prop);
224}
225
226unsigned GpuShaderCreator::getNumDynamicProperties() const noexcept
227{

Callers 7

AddGPLogPropertiesFunction · 0.80
AddGPLinPropertiesFunction · 0.80
AddGPVideoPropertiesFunction · 0.80
AddPropertyFunction · 0.80
AddGTPropertiesFunction · 0.80

Calls 3

getImplFunction · 0.50
getTypeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected