| 188 | } |
| 189 | |
| 190 | U32 GFXVertexFormat::getNumBlendIndices() const |
| 191 | { |
| 192 | if ( mDirty ) |
| 193 | const_cast<GFXVertexFormat*>(this)->_updateDirty(); |
| 194 | |
| 195 | if ( !mHasBlendIndices ) |
| 196 | return 0; |
| 197 | |
| 198 | U32 numIndices = 0; |
| 199 | |
| 200 | for ( U32 i=0; i < mElements.size(); i++ ) |
| 201 | { |
| 202 | const GFXVertexElement &element = mElements[i]; |
| 203 | |
| 204 | if ( element.isSemantic( GFXSemantic::BLENDINDICES ) ) |
| 205 | numIndices++; |
| 206 | } |
| 207 | |
| 208 | return numIndices; |
| 209 | } |
| 210 | |
| 211 | U32 GFXVertexFormat::getTexCoordCount() const |
| 212 | { |
no test coverage detected