Ensure DeviceLost event is also raised in debug mode
このコミットが含まれているのは:
1 親
2317ac8423
コミット
15682c44e6
1ファイル変更
+4
@@ -71,11 +71,15 @@ internal static class HResultExtensions
|
||||
|
||||
if (result < 0)
|
||||
{
|
||||
DeviceHelper.RaiseAllDeviceLostEventsIfNeeded();
|
||||
|
||||
ThrowHelper.ThrowWin32Exception(result);
|
||||
}
|
||||
|
||||
if (hasErrorsOrWarnings)
|
||||
{
|
||||
DeviceHelper.RaiseAllDeviceLostEventsIfNeeded();
|
||||
|
||||
ThrowHelper.ThrowWin32Exception("Warning or error detected by ID3D12InfoQueue.");
|
||||
}
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする