MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
SegmentedArgMax.hpp File Reference

The largest value of each segment of doubles and where it is, on the GPU, with no fp64 on the device. More...

Include dependency graph for SegmentedArgMax.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Yantra::ArgMaxResult
 The selected value of one segment and its position inside the segment. More...

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Yantra

Functions

std::vector< ArgMaxResult > MayaFlux::Yantra::read_argmax (WordPairExecutionContext &context, size_t segments)
 Read the selections of the segments of the last recorded stage.
Portal::Graphics::ShaderSpec MayaFlux::Yantra::segmented_argmax_spec (uint32_t workgroup=256)
 The spec of a SegmentedArgMax kernel.
DependencyStage MayaFlux::Yantra::segmented_argmax_stage (WordPairExecutionContext &context, const GpuComputeConfig &config, const SegmentGeometry &geometry)
 The stage that selects the largest value of every segment of values already on the device.
DependencyStage MayaFlux::Yantra::segmented_argmax_stage (WordPairExecutionContext &context, const GpuComputeConfig &config, std::span< const double > values, const SegmentGeometry &geometry)
 The stage that selects the largest value of every segment of a host sequence.

Variables

constexpr uint32_t MayaFlux::Yantra::no_argmax_index = 0xFFFFFFFFU
 The index reported for a segment that holds no value to select.

Detailed Description

The largest value of each segment of doubles and where it is, on the GPU, with no fp64 on the device.

The SegmentedArgMax kernel is run on a plain WordPairExecutionContext. This file holds what is specific to it: the spec, the stage and the decoding of its result.

Definition in file SegmentedArgMax.hpp.