예제 #1
0
		internal Texture1D(Device device, Texture1DDescription description)
			: base(device)
		{
			_description = description;

			_subresources = new Texture1DSubresource[description.ArraySize][];
			int mipMapCount = MipMapUtility.CalculateMipMapCount(description.MipLevels, description.Width);
			for (int i = 0; i < description.ArraySize; i++)
				_subresources[i] = MipMapUtility.CreateMipMaps(mipMapCount,
					description.Width);
		}
예제 #2
0
        internal Texture1D(Device device, Texture1DDescription description)
            : base(device)
        {
            _description = description;

            _subresources = new Texture1DSubresource[description.ArraySize][];
            int mipMapCount = MipMapUtility.CalculateMipMapCount(description.MipLevels, description.Width);

            for (int i = 0; i < description.ArraySize; i++)
            {
                _subresources[i] = MipMapUtility.CreateMipMaps(mipMapCount,
                                                               description.Width);
            }
        }