Example #1
0
 /// <unmanaged>HRESULT IDirect3D9::GetDeviceCaps([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[Out] D3DCAPS9* pCaps)</unmanaged>
 public unsafe HRESULT GetDeviceCaps(int adapter, D3DDEVTYPE deviceType, out D3DCAPS9 caps)
 {
     fixed(void *pCaps = &caps)
     {
         //calli(System.Int32(System.Void*,System.Int32,System.Int32,System.Void*), this._nativePointer, adapter, deviceType, &result, *(*(IntPtr*)this._nativePointer + (IntPtr)14 * (IntPtr)sizeof(void*))).CheckError();
         return((HRESULT)NativeHelper.CalliInt32(14, _nativePointer, (int)adapter, (int)deviceType, (void *)pCaps));
     }
 }
Example #2
0
        public D3DCAPS9 GetCaps(D3DDEVTYPE type)
        {
            var caps = new D3DCAPS9();
            var hr   = _direct3d.GetDeviceCaps(this.Adapter, type, out caps);

            hr.CheckError();
            return(caps);
        }