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

Method addMeshInstance

Source/Falcor/Scene/SceneBuilder.cpp:1094–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092 }
1093
1094 void SceneBuilder::addMeshInstance(NodeID nodeID, MeshID meshID)
1095 {
1096 FALCOR_CHECK(nodeID.get() < mSceneGraph.size(), "'nodeID' ({}) is out of range", nodeID);
1097 FALCOR_CHECK(meshID.get() < mMeshes.size(), "'meshID' ({}) is out of range", meshID);
1098
1099 mSceneGraph[nodeID.get()].meshes.push_back(meshID);
1100 mMeshes[meshID.get()].instances.insert(nodeID);
1101 }
1102
1103 void SceneBuilder::addCurveInstance(NodeID nodeID, CurveID curveID)
1104 {

Callers 5

addCurvesToSceneBuilderFunction · 0.80
buildSceneFunction · 0.80
addMeshInstancesFunction · 0.80
buildSceneFunction · 0.80

Calls 4

getMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected