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

◆ decode_primary()

std::vector< double > MayaFlux::Yantra::WordPairExecutionContext::decode_primary ( const GpuChannelResult & result) const
inlinenodiscard

Decode a dispatch result, as returned by an asynchronous collect, to doubles.

Parameters
resultResult whose primary output holds word pairs.
Returns
The decoded doubles, or empty when the context stages order keys.

Definition at line 76 of file WordPairExecutionContext.hpp.

77 {
78 if (m_order_key) {
79 return {};
80 }
81 const auto* bytes = reinterpret_cast<const uint8_t*>(result.primary.data());
82 return OperationHelper::decode_word_pairs(std::span<const uint8_t>(bytes, result.primary.size() * sizeof(float)));
83 }
static std::vector< double > decode_word_pairs(std::span< const uint8_t > bytes)
Decode little-endian 64-bit words as IEEE 754 doubles.

References MayaFlux::Yantra::OperationHelper::decode_word_pairs(), m_order_key, and MayaFlux::Yantra::GpuChannelResult::primary.

Referenced by collect_gpu_outputs().

Here is the call graph for this function:
Here is the caller graph for this function: