public void OfferResources(DxgiResource2[] resources, DxgiOfferResourcePriority priority)
        {
            if (resources == null)
            {
                throw new ArgumentNullException("resources");
            }

            this.device.OfferResources(
                (uint)resources.Length,
                Array.ConvertAll(resources, t => t.GetHandle <IDxgiResource>()),
                priority);
        }
        public void OfferResources(DxgiResource2[] resources, DxgiOfferResourcePriority priority)
        {
            if (resources == null)
            {
                throw new ArgumentNullException("resources");
            }

            this.device.OfferResources(
                (uint)resources.Length,
                Array.ConvertAll(resources, t => t.GetHandle<IDxgiResource>()),
                priority);
        }