示例#1
0
		internal Texture3D(Device device, Texture3DDescription description)
			: base(device)
		{
			_description = description;

			int mipMapCount = MipMapUtility.CalculateMipMapCount(description.MipLevels,
				description.Width, description.Height, description.Depth);
			_subresources = MipMapUtility.CreateMipMaps(mipMapCount,
				description.Width, description.Height, description.Depth);
		}