| 480 | } |
| 481 | |
| 482 | void Primitive::hash( MurmurHash &h ) const |
| 483 | { |
| 484 | VisibleRenderable::hash( h ); |
| 485 | for( PrimitiveVariableMap::const_iterator it=variables.begin(); it!=variables.end(); it++ ) |
| 486 | { |
| 487 | h.append( it->first ); |
| 488 | /// \todo: should we define PrimitiveVariable::hash() |
| 489 | /// and call that here? |
| 490 | h.append( it->second.interpolation ); |
| 491 | it->second.data->hash( h ); |
| 492 | if( it->second.indices ) |
| 493 | { |
| 494 | it->second.indices->hash( h ); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | topologyHash( h ); |
| 499 | } |
| 500 | |
| 501 | namespace |
| 502 | { |
nothing calls this directly
no test coverage detected