| 132 | } |
| 133 | |
| 134 | void 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 | |
| 142 | const char * GpuShaderCreator::getFunctionName() const noexcept |
| 143 | { |