tweak swapchain present signature
This commit is contained in:
parent
4a8eacbcda
commit
b10866bed7
@ -419,8 +419,8 @@ void GPU_ReleaseSwapchain(GPU_Swapchain *swapchain);
|
|||||||
* This should be called before rendering for minimum latency. */
|
* This should be called before rendering for minimum latency. */
|
||||||
void GPU_YieldOnSwapchain(GPU_Swapchain *swapchain);
|
void GPU_YieldOnSwapchain(GPU_Swapchain *swapchain);
|
||||||
|
|
||||||
/* 1. Ensures the backbuffer size matches `backbuffer_size`
|
/* 1. Recreates backbuffer at desired size if necessary
|
||||||
* 2. Blits `texture` into position `dst` in the backbuffer
|
* 2. Blits the source texture into the backbuffer
|
||||||
* 3. Presents 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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user