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

Method getGeometryIDs

Source/Falcor/Scene/Scene.cpp:2433–2444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2431 }
2432
2433 std::vector<GlobalGeometryID> Scene::getGeometryIDs(GeometryType geometryType) const
2434 {
2435 if (!hasGeometryType(geometryType)) return {};
2436
2437 std::vector<GlobalGeometryID> geometryIDs;
2438 uint32_t geometryCount = getGeometryCount();
2439 for (GlobalGeometryID geometryID{ 0 }; geometryID.get() < geometryCount; ++geometryID)
2440 {
2441 if (getGeometryType(geometryID) == geometryType) geometryIDs.push_back(geometryID);
2442 }
2443 return geometryIDs;
2444 }
2445
2446 std::vector<GlobalGeometryID> Scene::getGeometryIDs(GeometryType geometryType, MaterialType materialType) const
2447 {

Callers 8

TracePassMethod · 0.80
setSceneMethod · 0.80
setSceneMethod · 0.80
executeRaytraceMethod · 0.80
executeRaytraceMethod · 0.80
sceneChangedMethod · 0.80
FALCOR_SCRIPT_BINDINGFunction · 0.80
loadSceneMethod · 0.80

Calls 5

hasGeometryTypeFunction · 0.85
getGeometryCountFunction · 0.50
getMethod · 0.45
push_backMethod · 0.45
getTypeMethod · 0.45

Tested by 1

sceneChangedMethod · 0.64