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;