/// <summary> /// Constructs a new deferred context <see cref = "T:SharpDX.Direct3D11.DeviceContext" />. /// </summary> /// <param name = "device">The device with which to associate the state object.</param> /// <returns>The newly created object.</returns> public DeviceContext(Device device) : base(IntPtr.Zero) { device.CreateDeferredContext(0, this); // Add a reference to the device ((IUnknown)device).AddReference(); Device__ = device; }