Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
17 lines (15 loc) · 345 Bytes

DirectXHelper.h

File metadata and controls

17 lines (15 loc) · 345 Bytes
 
1
2
3
4
5
6
7
8
#pragma once
#include <wrl/client.h>
#include <ppl.h>
#include <ppltasks.h>
namespace DX
{
Jan 9, 2013
Jan 9, 2013
9
10
11
12
13
14
15
16
inline void ThrowIfFailed(HRESULT hr)
{
if (FAILED(hr))
{
// Set a breakpoint on this line to catch Win32 API errors.
throw Platform::Exception::CreateException(hr);
}
}