// Winlator Ludashi Native Vulkan Qualcomm Snapdragon GSR 2 (SGSR 2) 3-Pass Compute Backend #pragma once #include #include #include "fsr4_seam_proto.h" #include "fsr4_pipeline.h" #ifdef __cplusplus extern "C" { #endif typedef struct WlSgsr2Gpu WlSgsr2Gpu; WlSgsr2Gpu *wl_sgsr2_gpu_create(const WlVkDispatch *vk, const char *fsr4_dir); void wl_sgsr2_gpu_reset(WlSgsr2Gpu *g); int wl_sgsr2_gpu_is_ready(const WlSgsr2Gpu *g); // Returns: 2 = real SGSR 2 recorded, 0 = failed (caller falls back to FSR 3.1) int wl_sgsr2_gpu_dispatch(WlSgsr2Gpu *g, VkCommandBuffer cb, const WlFsr4FrameDesc *frame, VkImage color_img, VkFormat color_fmt, uint32_t cw, uint32_t ch, VkImage depth_img, VkFormat depth_fmt, VkImage motion_img, VkFormat motion_fmt, VkImage out_img, uint32_t ow, uint32_t oh, float sharpness, uint32_t *out_gpu_us, uint64_t *out_dispatches, const char **out_reason); void wl_sgsr2_gpu_destroy(WlSgsr2Gpu *g); #ifdef __cplusplus } #endif