[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

@@ -43,6 +43,9 @@ D3D12Provider::D3D12Provider(Window* main_window)
: GraphicsProvider(main_window) {}
D3D12Provider::~D3D12Provider() {
if (graphics_analysis_ != nullptr) {
graphics_analysis_->Release();
}
if (direct_queue_ != nullptr) {
direct_queue_->Release();
}
@@ -167,6 +170,10 @@ bool D3D12Provider::Initialize() {
"sample positions tier %u",
tiled_resources_tier_, programmable_sample_positions_tier_);
// Get the graphics analysis interface, will silently fail if PIX not
// attached.
DXGIGetDebugInterface1(0, IID_PPV_ARGS(&graphics_analysis_));
return true;
}