| 261 | } |
| 262 | |
| 263 | const char * GpuShaderCreator::getCacheID() const noexcept |
| 264 | { |
| 265 | AutoMutex lock(getImpl()->m_cacheIDMutex); |
| 266 | |
| 267 | if(getImpl()->m_cacheID.empty()) |
| 268 | { |
| 269 | std::ostringstream os; |
| 270 | os << GpuLanguageToString(getImpl()->m_language) << " "; |
| 271 | os << getImpl()->m_functionName << " "; |
| 272 | os << getImpl()->m_resourcePrefix << " "; |
| 273 | os << getImpl()->m_pixelName << " "; |
| 274 | os << getImpl()->m_numResources << " "; |
| 275 | os << getImpl()->m_descriptorSetIndex << " "; |
| 276 | os << getImpl()->m_textureBindingStart << " "; |
| 277 | os << getImpl()->m_shaderCodeID; |
| 278 | getImpl()->m_cacheID = os.str(); |
| 279 | } |
| 280 | |
| 281 | return getImpl()->m_cacheID.c_str(); |
| 282 | } |
| 283 | |
| 284 | void GpuShaderCreator::addToParameterDeclareShaderCode(const char * shaderCode) |
| 285 | { |
nothing calls this directly
no test coverage detected