MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getGeometryCount

Method getGeometryCount

Source/Falcor/Scene/Scene.cpp:2423–2431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 11

initInstanceInfoMethod · 0.80
TracePassMethod · 0.80
TracePassMethod · 0.80
setSceneMethod · 0.80
setSceneMethod · 0.80
executeRaytraceMethod · 0.80
executeRaytraceMethod · 0.80
sceneChangedMethod · 0.80
raytraceMethod · 0.80
initMethod · 0.80
loadSceneMethod · 0.80

Calls 2

maxFunction · 0.50
sizeMethod · 0.45

Tested by 1

sceneChangedMethod · 0.64