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

◆ set_output_dimensions()

void MayaFlux::Yantra::TextureExecutionContext::set_output_dimensions ( uint32_t  w,
uint32_t  h 
)
inline

Override the output storage image dimensions for the next dispatch.

When set, on_before_gpu_dispatch allocates the output image at these dimensions rather than the input container dimensions, and calculate_dispatch_size dispatches workgroups to cover this extent. Callers are responsible for supplying matching push constants so the shader maps output pixels to the correct source coordinates.

Pass std::nullopt to restore container-derived sizing.

Parameters
wOutput width in pixels.
hOutput height in pixels.

Definition at line 165 of file TextureExecutionContext.hpp.

166 {
167 m_output_dim_override = { w, h };
168 }
uint32_t h
Definition InkPress.cpp:28
std::optional< std::pair< uint32_t, uint32_t > > m_output_dim_override

References h.

Referenced by MayaFlux::Yantra::VisionExtractor< InputType, OutputType >::apply_operation_internal().

+ Here is the caller graph for this function: