MayaFlux 1.0.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 170 of file TextureExecutionContext.hpp.

171 {
172 m_output_dim_override = { w, h };
173 }
uint32_t h
Definition InkPress.cpp:29
std::optional< std::pair< uint32_t, uint32_t > > m_output_dim_override

References h.