capture profiler image before present
This commit is contained in:
parent
35f5832714
commit
4a01a54a59
@ -839,14 +839,12 @@ struct renderer_texture renderer_backbuffer_recreate(struct v2i32 size)
|
|||||||
void renderer_backbuffer_present(i32 vsync)
|
void renderer_backbuffer_present(i32 vsync)
|
||||||
{
|
{
|
||||||
__prof;
|
__prof;
|
||||||
|
renderer_capture_image_for_profiler();
|
||||||
{
|
{
|
||||||
__profscope(IDXGISwapchain_Present);
|
__profscope(IDXGISwapchain_Present);
|
||||||
IDXGISwapChain1_Present(G.swapchain, vsync, 0);
|
IDXGISwapChain1_Present(G.swapchain, vsync, 0);
|
||||||
__profframe(0);
|
__profframe(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer_capture_image_for_profiler();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========================== *
|
/* ========================== *
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user