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

◆ query_surface_extent()

MAYAFLUX_API std::pair< uint32_t, uint32_t > MayaFlux::Kakshya::query_surface_extent ( const std::shared_ptr< Core::Window > &  window)

Query the current pixel dimensions of the window's swapchain.

Parameters
windowTarget window.
Returns
{width, height} in pixels. Returns {0, 0} if the window is not registered with the graphics backend.

Definition at line 193 of file SurfaceUtils.cpp.

195{
196 auto* svc = get_display_service();
197 if (!svc)
198 return { 0U, 0U };
199
200 uint32_t w = 0, h = 0;
201 svc->get_swapchain_extent(std::static_pointer_cast<void>(window), w, h);
202 return { w, h };
203}

Referenced by MayaFlux::Kakshya::WindowAccessProcessor::process().

+ Here is the caller graph for this function: