private Direct3D11(ComInterface.ID3D11Device a_object) { comObject = a_object; ComInterface.GetComMethod(this.comObject, 5, out this.createTexture2D); ComInterface.GetComMethod(this.comObject, 28, out this.openSharedResource); ComInterface.GetComMethod(this.comObject, 40, out this.getImmediateContext); native = Marshal.GetIUnknownForObject(comObject); }
private void Release() { if (this.comObject != null) { Marshal.ReleaseComObject(this.comObject); this.comObject = null; this.createTexture2D = null; } }
private void Release() { if (this.comObject != null) { Marshal.ReleaseComObject(this.comObject); this.comObject = null; this.createTexture2D = null; this.openSharedResource = null; this.getImmediateContext = null; } }
public static extern int D3D11CreateDevice(IntPtr a_Adapter, uint a_D3D_DRIVER_TYPE, IntPtr a_HMODULE, uint a_Flags, IntPtr a_D3D_FEATURE_LEVELs, uint a_levels_Count, uint a_D3D11_SDK_VERSION, out ComInterface.ID3D11Device a_ID3D11Device, IntPtr a_D3D_FEATURE_LEVEL, out IntPtr a_ID3D11DeviceContext);