From b10866bed7866714004bfb805810b04ddd0209f1 Mon Sep 17 00:00:00 2001 From: jacob Date: Sun, 16 Nov 2025 06:08:29 -0600 Subject: [PATCH] tweak swapchain present signature --- src/gpu/gpu_core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gpu/gpu_core.h b/src/gpu/gpu_core.h index ad23f2a6..039ccae0 100644 --- a/src/gpu/gpu_core.h +++ b/src/gpu/gpu_core.h @@ -419,8 +419,8 @@ void GPU_ReleaseSwapchain(GPU_Swapchain *swapchain); * This should be called before rendering for minimum latency. */ void GPU_YieldOnSwapchain(GPU_Swapchain *swapchain); -/* 1. Ensures the backbuffer size matches `backbuffer_size` - * 2. Blits `texture` into position `dst` in the backbuffer +/* 1. Recreates backbuffer at desired size if necessary + * 2. Blits the source texture into the backbuffer * 3. Presents the backbuffer - * 4. Returns the value that the Direct queue fence will reach once GPU completes blitting (`texture` shouldn't be released while blit is in flight) */ -i64 GPU_PresentSwapchain(GPU_Swapchain *swapchain, GpuPointer texture, i32 vsync, Vec2I32 backbuffer_size, Vec2I32 dst_p0, Vec2I32 dst_p1, Vec2I32 src_p0, Vec2I32 src_p1, Vec4 clear_color); + */ +void GPU_PresentSwapchain(GPU_Swapchain *swapchain, Vec2I32 dst_size, Rng2I32 dst_range, GpuPointer src, Vec2I32 src_pos, i32 vsync, Vec4 clear_color);