sculpto
Classes | Functions
scl::dx Namespace Reference

Classes

class  com_exeption
 

Functions

void ThrowIfFailed (HRESULT hr)
 

Function Documentation

◆ ThrowIfFailed()

void scl::dx::ThrowIfFailed ( HRESULT  hr)
inline
  • Helper utility converts D3D API failures into exceptions.
Parameters
hrCOM result handle.
Returns
None.

Definition at line 42 of file throw_if_failed.h.

43 {
44 if (FAILED(hr))
45 {
46 throw com_exeption(hr);
47 }
48 }