| 158 | } |
| 159 | |
| 160 | void 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 | |
| 168 | const char * GpuShaderCreator::getPixelName() const noexcept |
| 169 | { |