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

Method getCacheID

src/OpenColorIO/GpuShaderDesc.cpp:263–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263const char * GpuShaderCreator::getCacheID() const noexcept
264{
265 AutoMutex lock(getImpl()->m_cacheIDMutex);
266
267 if(getImpl()->m_cacheID.empty())
268 {
269 std::ostringstream os;
270 os << GpuLanguageToString(getImpl()->m_language) << " ";
271 os << getImpl()->m_functionName << " ";
272 os << getImpl()->m_resourcePrefix << " ";
273 os << getImpl()->m_pixelName << " ";
274 os << getImpl()->m_numResources << " ";
275 os << getImpl()->m_descriptorSetIndex << " ";
276 os << getImpl()->m_textureBindingStart << " ";
277 os << getImpl()->m_shaderCodeID;
278 getImpl()->m_cacheID = os.str();
279 }
280
281 return getImpl()->m_cacheID.c_str();
282}
283
284void GpuShaderCreator::addToParameterDeclareShaderCode(const char * shaderCode)
285{

Callers

nothing calls this directly

Calls 3

GpuLanguageToStringFunction · 0.85
getImplFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected