MCPcopy Create free account
hub / github.com/Kitware/VTK / GetExactCellBufferSize

Method GetExactCellBufferSize

Rendering/WebGPU/vtkWebGPUPolyDataMapper.cxx:1359–1379  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1357
1358//------------------------------------------------------------------------------
1359unsigned 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//------------------------------------------------------------------------------
1382void vtkWebGPUPolyDataMapper::DeducePointCellAttributeAvailability(vtkPolyData* mesh)

Callers 1

Calls 1

Tested by

no test coverage detected