directx bindings problem
evilrat
evilrat666 at gmail.com
Wed Oct 2 23:19:23 PDT 2013
i'm trying directx bindings from dsource
(http://dsource.org/projects/bindings/wiki/DirectX)
and encountered problem, when calling swap chain getbuffer it
suddenly crashes. does anyone using it? any help please :(
// Create a render target view
ID3D11Texture2D* pBackBuffer;
// C++ version
//hr = g_pSwapChain->GetBuffer( 0, __uuidof( ID3D11Texture2D
),(LPVOID*)&pBackBuffer );
// D version(crashes)
hr = g_pSwapChain.GetBuffer( 0, &IID_ID3D11Texture2D,
cast(LPVOID*)pBackBuffer );
More information about the Digitalmars-d-learn
mailing list