MCPcopy Create free account
hub / github.com/GPUOpen-Effects/TressFX / RunSimulation

Method RunSimulation

src/Simulation.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void Simulation::RunSimulation(EI_CommandContext& simContext, SimulationContext& ctx)
122{
123 std::vector<TressFXHairObject*> hairObjects(ctx.hairStrands.size());
124 for (size_t i = 0; i < ctx.hairStrands.size(); i++)
125 {
126 // update bone matrices for bone skinning of first two vertices of hair strands
127 ctx.hairStrands[i]->UpdateBones(simContext);
128 hairObjects[i] = ctx.hairStrands[i]->GetTressFXHandle();
129 }
130 // Run simulation
131 mSimulation.Simulate(simContext, hairObjects);
132}

Callers

nothing calls this directly

Calls 3

UpdateBonesMethod · 0.80
GetTressFXHandleMethod · 0.80
SimulateMethod · 0.45

Tested by

no test coverage detected