/// <summary>
 /// Unregister an image from the effect
 /// </summary>
 /// <param name="image"></param>
 public void UnregisterImage(VKImage image)
 {
     // Check arguments
     if (image is null)
     {
         throw new ArgumentNullException(nameof(image));
     }
     // Check if active
     if (!Active)
     {
         throw new InvalidOperationException("Effect is not active");
     }
     // Call OnUnregisterImage and unregister command buffer
     Graphics.Device.WaitIdle();
     OnUnregisterImage(image);
     CommandBuffers[image].Dispose();
     CommandBuffers.Remove(image);
 }