public virtual int CreateDeviceContext( D2D1_DEVICE_CONTEXT_OPTIONS options, out ID2D1DeviceContext deviceContext ) { var fp = GetFunctionPointer(4); if (m_CreateDeviceContextFunc == null) { m_CreateDeviceContextFunc = (CreateDeviceContextFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateDeviceContextFunc)); } deviceContext = new ID2D1DeviceContext(); return(m_CreateDeviceContextFunc(m_ptr, options, out deviceContext.PtrForNew)); }
public static extern int D2D1CreateDeviceContext( IDXGISurface dxgiSurface, ref D2D1_CREATION_PROPERTIES creationProperties, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID2D1DeviceContext>))] out ID2D1DeviceContext d2dDeviceContext );