MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
SurfaceUtils.cpp File Reference
+ Include dependency graph for SurfaceUtils.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kakshya
 

Functions

Core::GraphicsSurfaceInfo::SurfaceFormat MayaFlux::Kakshya::query_surface_format (const std::shared_ptr< Core::Window > &window)
 Query the actual vk::Format in use by the window's live swapchain, translated back to the MayaFlux surface format enum.
 
DataAccess MayaFlux::Kakshya::readback_region (const std::shared_ptr< Core::Window > &window, uint32_t x_offset, uint32_t y_offset, uint32_t pixel_width, uint32_t pixel_height, DataVariant &out_variant)
 Read a pixel rectangle from the last completed swapchain frame into a DataVariant whose element type matches the live swapchain format.
 
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.
 
bool MayaFlux::Kakshya::is_readback_available (const std::shared_ptr< Core::Window > &window)
 Check whether a completed frame is currently available for readback.