------------------------------------------------------------------------------
| 1357 | |
| 1358 | //------------------------------------------------------------------------------ |
| 1359 | unsigned long vtkWebGPUPolyDataMapper::GetExactCellBufferSize( |
| 1360 | vtkWebGPUPolyDataMapper::CellDataAttributes attribute) |
| 1361 | { |
| 1362 | unsigned long result = 0; |
| 1363 | |
| 1364 | switch (attribute) |
| 1365 | { |
| 1366 | case CELL_COLORS: |
| 1367 | result = this->GetCellAttributeByteSize(CELL_COLORS); |
| 1368 | break; |
| 1369 | case CELL_NORMALS: |
| 1370 | result = this->GetCellAttributeByteSize(CELL_NORMALS); |
| 1371 | break; |
| 1372 | case CELL_NB_ATTRIBUTES: |
| 1373 | case CELL_UNDEFINED: |
| 1374 | break; |
| 1375 | } |
| 1376 | |
| 1377 | result = vtkWebGPUConfiguration::Align(result, 32); |
| 1378 | return result; |
| 1379 | } |
| 1380 | |
| 1381 | //------------------------------------------------------------------------------ |
| 1382 | void vtkWebGPUPolyDataMapper::DeducePointCellAttributeAvailability(vtkPolyData* mesh) |
no test coverage detected