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

Method setFunctionName

src/OpenColorIO/GpuShaderDesc.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void GpuShaderCreator::setFunctionName(const char * name) noexcept
135{
136 AutoMutex lock(getImpl()->m_cacheIDMutex);
137 // Note: Remove potentially problematic double underscores from GLSL resource names.
138 getImpl()->m_functionName = StringUtils::Replace(name ? name : "", "__", "_");
139 getImpl()->m_cacheID.clear();
140}
141
142const char * GpuShaderCreator::getFunctionName() const noexcept
143{

Callers 4

main.cppFile · 0.45
OCIO_ADD_GPU_TESTFunction · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls 3

ReplaceFunction · 0.85
getImplFunction · 0.50
clearMethod · 0.45

Tested by 3

OCIO_ADD_GPU_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36