| 320 | } |
| 321 | |
| 322 | bool ShaderData::hasSamplerDef(const String &_samplerName, int &pos) const |
| 323 | { |
| 324 | String samplerName = _samplerName.startsWith("$") ? _samplerName : "$"+_samplerName; |
| 325 | for(int i = 0; i < NumTextures; ++i) |
| 326 | { |
| 327 | if( mSamplerNames[i].equal(samplerName, String::NoCase ) ) |
| 328 | { |
| 329 | pos = i; |
| 330 | return true; |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | pos = -1; |
| 335 | return false; |
| 336 | } |
| 337 | |
| 338 | bool ShaderData::_checkDefinition(GFXShader *shader) |
| 339 | { |
no test coverage detected