[D3D12] PIX: Capture with F4, disable tiled resources when attached
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user