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

◆ reduction_spec()

Portal::Graphics::ShaderSpec MayaFlux::Yantra::SegmentedReductionContext::reduction_spec ( Portal::Graphics::KernelOp combine,
Portal::Graphics::ReductionMap map,
uint32_t workgroup )
inlinestaticnodiscard

The spec of the template instance this context drives.

Definition at line 89 of file SegmentedReductionContext.hpp.

91 {
93 return Portal::Graphics::ShaderSpec::Assemble {}
95 .op(combine)
96 .map(map)
97 .ssbo("values", BindingDirection::Input, Kakshya::GpuDataFormat::VEC2_U32)
98 .ssbo("result", BindingDirection::Output, Kakshya::GpuDataFormat::VEC2_U32)
100 .pc("stride", Kakshya::GpuDataFormat::UINT32)
101 .pc("offset", Kakshya::GpuDataFormat::UINT32)
102 .workgroup(workgroup)
103 .build();
104 }
@ VEC2_U32
glm::uvec2: a 64-bit value as low word (x) and high word (y), not a sampled image format
@ SegmentedReduction
One workgroup per segment over word-pair doubles.
BindingDirection
Data flow direction for a shader binding slot.

References MayaFlux::Portal::Graphics::ShaderSpec::Assemble::build(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::map(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::op(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::pc(), MayaFlux::Portal::Graphics::SegmentedReduction, MayaFlux::Portal::Graphics::ShaderSpec::Assemble::ssbo(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::tmpl(), MayaFlux::Kakshya::UINT32, MayaFlux::Kakshya::VEC2_U32, and MayaFlux::Portal::Graphics::ShaderSpec::Assemble::workgroup().

Referenced by SegmentedReductionContext().

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