MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / GetNextKeyTime

Method GetNextKeyTime

src/common/base/Sequence.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59float BenchmarkSequence::GetNextKeyTime(float time)
60{
61 for (int i = 0; i < m_keyFrames.size(); i++)
62 {
63 KeyFrame key = m_keyFrames[i];
64 if (key.m_time > time)
65 {
66 return key.m_time;
67 }
68 }
69
70 return -1;
71}
72
73const BenchmarkSequence::KeyFrame BenchmarkSequence::GetNextKeyFrame(float time) const
74{

Callers 1

BenchmarkLoopFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected