------------------------------------------------------------------------------
| 1323 | |
| 1324 | //------------------------------------------------------------------------------ |
| 1325 | unsigned long vtkWebGPUPolyDataMapper::GetExactPointBufferSize( |
| 1326 | vtkWebGPUPolyDataMapper::PointDataAttributes attribute) |
| 1327 | { |
| 1328 | unsigned long result = 0; |
| 1329 | |
| 1330 | switch (attribute) |
| 1331 | { |
| 1332 | case POINT_POSITIONS: |
| 1333 | result = this->GetPointAttributeByteSize(POINT_POSITIONS); |
| 1334 | break; |
| 1335 | case POINT_COLORS: |
| 1336 | result = this->GetPointAttributeByteSize(POINT_COLORS); |
| 1337 | break; |
| 1338 | case POINT_NORMALS: |
| 1339 | result = this->GetPointAttributeByteSize(POINT_NORMALS); |
| 1340 | break; |
| 1341 | case POINT_TANGENTS: |
| 1342 | result = this->GetPointAttributeByteSize(POINT_TANGENTS); |
| 1343 | break; |
| 1344 | case POINT_UVS: |
| 1345 | result = this->GetPointAttributeByteSize(POINT_UVS); |
| 1346 | break; |
| 1347 | case POINT_COLOR_UVS: |
| 1348 | result = this->GetPointAttributeByteSize(POINT_COLOR_UVS); |
| 1349 | break; |
| 1350 | case POINT_NB_ATTRIBUTES: |
| 1351 | case POINT_UNDEFINED: |
| 1352 | break; |
| 1353 | } |
| 1354 | result = vtkWebGPUConfiguration::Align(result, 32); |
| 1355 | return result; |
| 1356 | } |
| 1357 | |
| 1358 | //------------------------------------------------------------------------------ |
| 1359 | unsigned long vtkWebGPUPolyDataMapper::GetExactCellBufferSize( |
no test coverage detected