From 7781d290306bad97ecef26d2363588cce574f385 Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 20 Oct 2026 18:30:48 +0900 Subject: [PATCH] =?UTF-8?q?=E5=88=B0=E9=81=94=E3=81=97=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=83=AC=E3=83=99=E3=83=AB=E6=95=B0=E3=81=AE=E4=B8=8A=E9=99=90?= =?UTF-8?q?=E3=81=A8=E6=A4=9C=E6=9F=BB=E3=82=92=E5=8F=96=E3=82=8A=E9=99=A4?= =?UTF-8?q?=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inflate.Tests/InflateSettingsTests.cs | 1 - Inflate/InflatePipeline.cs | 4 ---- Inflate/InflateSettings.cs | 1 - 3 files changed, 6 deletions(-) diff --git a/Inflate.Tests/InflateSettingsTests.cs b/Inflate.Tests/InflateSettingsTests.cs index 3aa3840..4b7e684 100644 --- a/Inflate.Tests/InflateSettingsTests.cs +++ b/Inflate.Tests/InflateSettingsTests.cs @@ -82,7 +82,6 @@ public sealed class InflateSettingsTests var levelCount = InflateSettings.GetLevelCount(gridWidth, gridHeight); var (coarsestWidth, coarsestHeight) = InflateSettings.GetLevelSize(gridWidth, gridHeight, levelCount - 1); - Assert.InRange(levelCount, 1, InflateSettings.MaximumLevelCount); Assert.True(coarsestWidth * coarsestHeight <= InflateSettings.CoarseSolveThreads, $"{quality} {coarsestWidth}x{coarsestHeight}"); } } diff --git a/Inflate/InflatePipeline.cs b/Inflate/InflatePipeline.cs index 4b61262..ab4f917 100644 --- a/Inflate/InflatePipeline.cs +++ b/Inflate/InflatePipeline.cs @@ -230,10 +230,6 @@ internal sealed class InflatePipeline : IDisposable { var settings = InflateSettings.GetQuality(quality); var (gridWidth, gridHeight) = InflateSettings.GetGridSize(width, height, settings.GridResolution); - var levelCount = InflateSettings.GetLevelCount(gridWidth, gridHeight); - if (levelCount > InflateSettings.MaximumLevelCount) - throw new InvalidOperationException(); - var pyramidLength = InflateSettings.GetPyramidLength(gridWidth, gridHeight); if (!_host.TryEnsureGrid( new InflateGridResources.Plan( diff --git a/Inflate/InflateSettings.cs b/Inflate/InflateSettings.cs index bb4e955..b98469b 100644 --- a/Inflate/InflateSettings.cs +++ b/Inflate/InflateSettings.cs @@ -4,7 +4,6 @@ internal static class InflateSettings { public const int MaximumCanvasSize = 8192; public const int CoarsestLevelSize = 16; - public const int MaximumLevelCount = 9; public const int CoarseSolveThreads = CoarsestLevelSize * CoarsestLevelSize; public const int CoarseSolveRegions = 3; public const int CoarseSolveIterations = 256;