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); }
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); } }