Switch between img and surface in last frame

This commit is contained in:
ns6089
2023-04-06 23:39:44 +03:00
committed by Cameron Gutman
parent 7b11b48317
commit 045d4b81a4
2 changed files with 294 additions and 74 deletions

View File

@@ -230,7 +230,9 @@ namespace platf::dxgi {
gpu_cursor_t cursor_alpha;
gpu_cursor_t cursor_xor;
texture2d_t last_frame_copy;
texture2d_t old_surface_delayed_destruction;
std::chrono::steady_clock::time_point old_surface_timestamp;
std::variant<std::monostate, texture2d_t, std::shared_ptr<platf::img_t>> last_frame_variant;
std::atomic<uint32_t> next_image_id;
};