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

◆ context()

template<ComputeData OutputType = std::vector<Kakshya::DataVariant>>
WordPairExecutionContext & MayaFlux::Yantra::BitonicSorter< OutputType >::context ( )
inlineprivate

The context, built on first use so a sorter can be created before any device.

Definition at line 208 of file BitonicSorter.hpp.

209 {
210 if (!m_context) {
211 const auto spec = sort_spec();
215 config_from_spec(spec), std::move(bindings), true, "BitonicSorter");
216 }
217 return *m_context;
218 }
std::shared_ptr< WordPairExecutionContext > m_context
static Portal::Graphics::ShaderSpec sort_spec()
Sorts each numeric channel on the GPU, exactly, without fp64.
GpuComputeConfig config_from_spec(const Portal::Graphics::ShaderSpec &spec)
Derive a GpuComputeConfig from a ShaderSpec.
std::vector< GpuBufferBinding > bindings_from_spec(const Portal::Graphics::ShaderSpec &spec)
Derive a GpuBufferBinding list from a ShaderSpec.

References MayaFlux::Yantra::bindings_from_spec(), MayaFlux::Yantra::config_from_spec(), m_context, and sort_spec().

Referenced by order().

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