[GPU] Trace dump: Do PIX/RenderDoc capture if attached

This commit is contained in:
Triang3l
2019-10-25 21:32:17 +03:00
parent f75d927cc5
commit 36f4158f09
4 changed files with 44 additions and 0 deletions

View File

@@ -126,10 +126,12 @@ bool TraceDump::Load(std::wstring trace_file_path) {
}
int TraceDump::Run() {
BeginHostCapture();
player_->SeekFrame(0);
player_->SeekCommand(
static_cast<int>(player_->current_frame()->commands.size() - 1));
player_->WaitOnPlayback();
EndHostCapture();
// Capture.
int result = 0;