/// <summary> /// <p>Retrieves device-specific information about a device. </p> /// </summary> /// <param name="adapter"><dd> <p>Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter. </p> </dd></param> /// <param name="deviceType"><dd> <p>Member of the <strong><see cref="SharpDX.Direct3D9.DeviceType"/></strong> enumerated type. Denotes the device type. </p> </dd></param> /// <returns><dd> <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.Capabilities"/></strong> structure to be filled with information describing the capabilities of the device. </p> </dd></returns> /// <remarks> /// <p>The application should not assume the persistence of vertex processing capabilities across Direct3D device objects. The particular capabilities that a physical device exposes may depend on parameters supplied to <strong>CreateDevice</strong>. For example, the capabilities may yield different vertex processing capabilities before and after creating a Direct3D Device Object with hardware vertex processing enabled. For more information see the description of <strong><see cref="SharpDX.Direct3D9.Capabilities"/></strong>.</p> /// </remarks> /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3D9::GetDeviceCaps']/*"/> /// <msdn-id>bb174320</msdn-id> /// <unmanaged>HRESULT IDirect3D9::GetDeviceCaps([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[Out] D3DCAPS9* pCaps)</unmanaged> /// <unmanaged-short>IDirect3D9::GetDeviceCaps</unmanaged-short> public SharpDX.Direct3D9.Capabilities GetDeviceCaps(int adapter, SharpDX.Direct3D9.DeviceType deviceType) { unsafe { SharpDX.Direct3D9.Capabilities capsRef; capsRef = new SharpDX.Direct3D9.Capabilities(); SharpDX.Result __result__; __result__= SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, adapter, unchecked((int)deviceType), &capsRef,((void**)(*(void**)_nativePointer))[14]); __result__.CheckError(); return capsRef; } }
public GraphicsDeviceInformation( SharpDX.Direct3D9.Direct3D d3d ) { this.d3d = d3d; d3dCaps = d3d.GetDeviceCaps ( 0, SharpDX.Direct3D9.DeviceType.Hardware ); }
/// <summary> /// <p>Retrieves the capabilities of the rendering device.</p> /// </summary> /// <param name="capsRef"><dd> <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.Capabilities"/></strong> structure, describing the returned device. </p> </dd></param> /// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.Direct3D9.ResultCode.Success"/>. If the method fails, the return value can be <see cref="SharpDX.Direct3D9.ResultCode.InvalidCall"/>. </p></returns> /// <remarks> /// <p><strong><see cref="SharpDX.Direct3D9.Device.GetCapabilities"/></strong> retrieves the software vertex pipeline capabilities when the device is being used in software vertex processing mode. </p> /// </remarks> /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DDevice9::GetDeviceCaps']/*"/> /// <msdn-id>bb174385</msdn-id> /// <unmanaged>HRESULT IDirect3DDevice9::GetDeviceCaps([Out] D3DCAPS9* pCaps)</unmanaged> /// <unmanaged-short>IDirect3DDevice9::GetDeviceCaps</unmanaged-short> internal void GetCapabilities(out SharpDX.Direct3D9.Capabilities capsRef) { unsafe { capsRef = new SharpDX.Direct3D9.Capabilities(); SharpDX.Result __result__; fixed (void* capsRef_ = &capsRef) __result__= SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, capsRef_,((void**)(*(void**)_nativePointer))[7]); __result__.CheckError(); } }