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

Method setResourcePrefix

src/OpenColorIO/GpuShaderDesc.cpp:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void GpuShaderCreator::setResourcePrefix(const char * prefix) noexcept
148{
149 AutoMutex lock(getImpl()->m_cacheIDMutex);
150 // Note: Remove potentially problematic double underscores from GLSL resource names.
151 getImpl()->m_resourcePrefix = StringUtils::Replace(prefix ? prefix : "", "__", "_");
152 getImpl()->m_cacheID.clear();
153}
154
155const char * GpuShaderCreator::getResourcePrefix() const noexcept
156{

Callers 4

main.cppFile · 0.80
bindPyGpuShaderDescFunction · 0.80
OCIO_ADD_GPU_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 3

ReplaceFunction · 0.85
getImplFunction · 0.50
clearMethod · 0.45

Tested by 2

OCIO_ADD_GPU_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64