From 971b0c4151d032f286e6aeb4c46401f32a69ceed Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 25 Sep 2026 19:32:40 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B8=E3=83=A3=E3=83=B3=E3=83=97=E3=83=95?= =?UTF-8?q?=E3=83=A9=E3=83=83=E3=83=89=E3=82=92=E6=A8=AA=E4=B8=80=E5=88=97?= =?UTF-8?q?=E3=81=AE=E3=82=B9=E3=83=AC=E3=83=83=E3=83=89=E3=82=B0=E3=83=AB?= =?UTF-8?q?=E3=83=BC=E3=83=97=E3=81=A7=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・三角メッシュの再計算を高速化-M --- LowPolyAbstraction/LowPolyAbstractionGpuShaders.cs | 4 ++-- LowPolyAbstraction/LowPolyAbstractionSettings.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LowPolyAbstraction/LowPolyAbstractionGpuShaders.cs b/LowPolyAbstraction/LowPolyAbstractionGpuShaders.cs index b8a6dc1..0743fe2 100644 --- a/LowPolyAbstraction/LowPolyAbstractionGpuShaders.cs +++ b/LowPolyAbstraction/LowPolyAbstractionGpuShaders.cs @@ -200,7 +200,7 @@ internal readonly partial struct EdgeDistanceSeedShader( } } -[ThreadGroupSize(DefaultThreadGroupSizes.XY)] +[ThreadGroupSize(LowPolyAbstractionSettings.JumpFloodGroupWidth, 1, 1)] [GeneratedComputeShaderDescriptor] internal readonly partial struct JumpFloodPixelPassShader( ReadWriteBuffer input, @@ -642,7 +642,7 @@ internal readonly partial struct VoronoiScatterShader( } } -[ThreadGroupSize(DefaultThreadGroupSizes.XY)] +[ThreadGroupSize(LowPolyAbstractionSettings.JumpFloodGroupWidth, 1, 1)] [GeneratedComputeShaderDescriptor] internal readonly partial struct JumpFloodSitePassShader( ReadWriteBuffer input, diff --git a/LowPolyAbstraction/LowPolyAbstractionSettings.cs b/LowPolyAbstraction/LowPolyAbstractionSettings.cs index 55ecef1..65298f0 100644 --- a/LowPolyAbstraction/LowPolyAbstractionSettings.cs +++ b/LowPolyAbstraction/LowPolyAbstractionSettings.cs @@ -18,6 +18,7 @@ internal static class LowPolyAbstractionSettings public const int ScratchAlphaCount = 9; public const int ScratchPendingCount = 10; public const int ScanBlockSize = 1024; + public const int JumpFloodGroupWidth = 64; public const float AlphaThreshold = 0.05f; public const float EdgeThreshold = 0.06f; public const float EdgeSampleSpacingFactor = 0.02f;