[D3D12] PIX: Capture with F4, disable tiled resources when attached

This commit is contained in:
Triang3l
2018-10-08 12:05:15 +03:00
parent 16dc6e4100
commit fccebae703
6 changed files with 62 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
#ifndef XENIA_GPU_D3D12_D3D12_COMMAND_PROCESSOR_H_
#define XENIA_GPU_D3D12_D3D12_COMMAND_PROCESSOR_H_
#include <atomic>
#include <deque>
#include <memory>
#include <unordered_map>
@@ -40,6 +41,8 @@ class D3D12CommandProcessor : public CommandProcessor {
void ClearCaches() override;
void RequestFrameTrace(const std::wstring& root_path) override;
// Needed by everything that owns transient objects.
xe::ui::d3d12::D3D12Context* GetD3D12Context() const {
return static_cast<xe::ui::d3d12::D3D12Context*>(context_.get());
@@ -252,6 +255,9 @@ class D3D12CommandProcessor : public CommandProcessor {
uint32_t current_queue_frame_ = UINT32_MAX;
std::atomic<bool> pix_capture_requested_ = false;
bool pix_capturing_;
// The current fixed-function drawing state.
D3D12_VIEWPORT ff_viewport_;
D3D12_RECT ff_scissor_;