| 2421 | } |
| 2422 | |
| 2423 | uint32_t Scene::getGeometryCount() const |
| 2424 | { |
| 2425 | // The BLASes currently hold the geometries in the order: meshes, curves, SDF grids, custom primitives. |
| 2426 | // We calculate the total number of geometries as the sum of the respective kind. |
| 2427 | |
| 2428 | size_t totalGeometries = mMeshDesc.size() + mCurveDesc.size() + mCustomPrimitiveDesc.size() + getSDFGridGeometryCount(); |
| 2429 | FALCOR_ASSERT_LT(totalGeometries, std::numeric_limits<uint32_t>::max()); |
| 2430 | return (uint32_t)totalGeometries; |
| 2431 | } |
| 2432 | |
| 2433 | std::vector<GlobalGeometryID> Scene::getGeometryIDs(GeometryType geometryType) const |
| 2434 | { |