GS/DX12: Enable GBV with the debug device

This commit is contained in:
TheLastRar 2025-12-04 22:31:29 +00:00 committed by lightningterror
parent 7c88af9c73
commit cb5124da4b
1 changed files with 2 additions and 1 deletions

View File

@ -165,11 +165,12 @@ bool GSDevice12::CreateDevice(u32& vendor_id)
// Enabling the debug layer will fail if the Graphics Tools feature is not installed.
if (enable_debug_layer)
{
ComPtr<ID3D12Debug> debug12;
ComPtr<ID3D12Debug1> debug12;
hr = D3D12GetDebugInterface(IID_PPV_ARGS(debug12.put()));
if (SUCCEEDED(hr))
{
debug12->EnableDebugLayer();
debug12->SetEnableGPUBasedValidation(true);
}
else
{