diff options
| author | degasus <wickmarkus@web.de> | 2016-11-04 18:19:35 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-11-04 18:35:42 +0100 |
| commit | be29090aaea5482234c06e1220a22797aad0b114 (patch) | |
| tree | 436e4b6a686f6f64ad5fbf5eeeb9a25882049dce /Source/Core/VideoBackends/D3D12/Render.cpp | |
| parent | dad5041737053a75c58123c637c28c350d99dd08 (diff) | |
AVIDump: Add a struct for the state.
So AddFrame use no global state and can be threaded well.
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/Render.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D12/Render.cpp b/Source/Core/VideoBackends/D3D12/Render.cpp index 9c1cbdad76..8b3c36651b 100644 --- a/Source/Core/VideoBackends/D3D12/Render.cpp +++ b/Source/Core/VideoBackends/D3D12/Render.cpp @@ -777,8 +777,9 @@ void Renderer::SwapImpl(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height D3D12_RANGE read_range = {0, dst_location.PlacedFootprint.Footprint.RowPitch * source_height}; CheckHR(s_screenshot_texture->Map(0, &read_range, &screenshot_texture_map)); + AVIDump::Frame state = AVIDump::FetchState(ticks); DumpFrameData(reinterpret_cast<const u8*>(screenshot_texture_map), source_width, source_height, - dst_location.PlacedFootprint.Footprint.RowPitch, ticks); + dst_location.PlacedFootprint.Footprint.RowPitch, state); FinishFrameData(); D3D12_RANGE write_range = {}; |
