Recently, I am returning to C ++. I have been away from C ++ / CLI using C # instead for at least a year, and I'm a little rusty. I am looking at a basic example for a Direct3D application for Windows 8 and cannot find anything that explains that
DX::ThrowIfFailed
does. From the fact that he says that he will do something if something in DirectX fails, but from the implementation it seems that he is used to initialize the material, since the base for Direct3D demonstrates:
Platform::String^ text = "Hello, DirectX!"; DX::ThrowIfFailed( m_dwriteFactory->CreateTextLayout( message->Data(), message->Length(), m_textFormat.Get(), 700,
Can someone explain to me how this function works. I see that this is meticulous in the examples, but no number of search queries facilitated proper documentation. Thanks in advance!
source share