MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_timestamp_result()

ShaderFoundry::TimestampResult MayaFlux::Portal::Graphics::ShaderFoundry::get_timestamp_result ( CommandBufferID  cmd_id,
const std::string &  label 
)

Definition at line 1435 of file ShaderFoundry.cpp.

1436{
1437 auto it = m_command_buffers.find(cmd_id);
1438 if (it != m_command_buffers.end()) {
1439 return resolve_timestamp(it->second, label, true);
1440 }
1441
1442 for (size_t i = 0; i < m_finished_timestamps.capacity(); ++i) {
1443 const auto& entry = m_finished_timestamps[i];
1444 if (entry.cmd_id == cmd_id && entry.result.label == label) {
1445 return entry.result;
1446 }
1447 }
1448
1449 return { .label = label, .duration_ns = 0, .valid = false };
1450}
uint32_t label
Definition Contours.cpp:16
TimestampResult resolve_timestamp(const CommandBufferState &state, const std::string &label, bool wait)
Memory::HistoryBuffer< FinishedTimestamp > m_finished_timestamps
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers

References label, m_command_buffers, m_finished_timestamps, and resolve_timestamp().

+ Here is the call graph for this function: