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

◆ stage() [1/2]

void MayaFlux::Yantra::SegmentedReductionContext::stage ( const SegmentGeometry & geometry)
inline

Stage the geometry for values that are already on the device.

The values are whatever binding 0 resolves to: a shared buffer of this context, or one imported from another with import_shared. Nothing is staged from the host.

Definition at line 79 of file SegmentedReductionContext.hpp.

80 {
81 m_segments = geometry.count;
82 set_output_size(1, static_cast<size_t>(geometry.count) * sizeof(uint64_t));
83 push(Push { .length = geometry.length, .stride = geometry.stride, .offset = geometry.offset });
84 }
void set_output_size(size_t index, size_t byte_size)
Declare the byte capacity of an output binding independently of input data.
ShaderExecutionContext & push(const T &data)
Set push constants from a trivially copyable struct or value.

References MayaFlux::Yantra::SegmentGeometry::count, MayaFlux::Yantra::SegmentGeometry::length, m_segments, MayaFlux::Yantra::SegmentGeometry::offset, MayaFlux::Yantra::ShaderExecutionContext< InputType, OutputType >::push(), MayaFlux::Yantra::GpuDispatchCore::set_output_size(), and MayaFlux::Yantra::SegmentGeometry::stride.

Here is the call graph for this function: