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

Method setPixelName

src/OpenColorIO/GpuShaderDesc.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void GpuShaderCreator::setPixelName(const char * name) noexcept
161{
162 AutoMutex lock(getImpl()->m_cacheIDMutex);
163 // Note: Remove potentially problematic double underscores from GLSL resource names.
164 getImpl()->m_pixelName = StringUtils::Replace(name ? name : "", "__", "_");
165 getImpl()->m_cacheID.clear();
166}
167
168const char * GpuShaderCreator::getPixelName() const noexcept
169{

Callers 4

bindPyGpuShaderDescFunction · 0.80
OCIO_ADD_GPU_TESTFunction · 0.80
GPUUnitTest.cppFile · 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