1 //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
2 //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
3 //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
4 //// PARTICULAR PURPOSE.
6 //// Copyright (c) Microsoft Corporation. All rights reserved
10 // Helper utilities to make DX APIs work with exceptions in the samples apps.
13 inline void ThrowIfFailed(HRESULT hr)
17 // Set a breakpoint on this line to catch DX API errors.
18 throw Platform::Exception::CreateException(hr);