message: D3D12 backend: updated debug interface settings
diff: @@ -147,7 +147,7 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat
  CComPtr<ID3D12Device> d3d12Device;
  try
  {
  -#if defined(_DEBUG)
  +#ifdef DEVELOPMENT
  // Enable the D3D12 debug layer.
  {
  CComPtr<ID3D12Debug> debugController;
  @@ -199,7 +199,7 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat
  CHECK_D3D_RESULT_THROW(hr, "Failed to crate warp device");
  }
  -#if _DEBUG
  +#ifdef DEVELOPMENT
  {
  CComPtr<ID3D12InfoQueue> pInfoQueue;
  hr = d3d12Device->QueryInterface(__uuidof(pInfoQueue), reinterpret_cast<void**>(static_cast<ID3D12InfoQueue**>(&pInfoQueue)));
  @@ -227,6 +227,12 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat
  hr = pInfoQueue->PushStorageFilter(&NewFilter);
  VERIFY(SUCCEEDED(hr), "Failed to push storage filter");
  +
  + hr = pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_CORRUPTION, true);
  + VERIFY(SUCCEEDED(hr), "Failed to set break on corruption");
  +
  + hr = pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_ERROR, true);
  + VERIFY(SUCCEEDED(hr), "Failed to set break on error");
  }
  }
  #endif
  