格子を読む処理のスレッドグループを横長にする

このコミットが含まれているのは:
routersys committed 2026-10-20 19:17:50 +09:00
1 親 46393e4ad6
コミット a62848d8f5
2ファイル変更
+6 -4

検索条件に一致するファイルはありません

+4 -4
ファイルの表示
@@ -234,7 +234,7 @@ internal readonly partial struct CoarseNeighborShader(
}
}
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[ThreadGroupSize(InflateSettings.RowGroupWidth, InflateSettings.RowGroupHeight, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ResidualShader(
ReadWriteBuffer<float> potential,
@@ -283,7 +283,7 @@ internal readonly partial struct ResidualShader(
}
}
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[ThreadGroupSize(InflateSettings.RowGroupWidth, InflateSettings.RowGroupHeight, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct RestrictResidualShader(
ReadWriteBuffer<float> residual,
@@ -407,7 +407,7 @@ internal readonly partial struct CoarseSolveShader(
}
}
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[ThreadGroupSize(InflateSettings.RowGroupWidth, InflateSettings.RowGroupHeight, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ProlongShader(
ReadWriteBuffer<float> potential,
@@ -631,7 +631,7 @@ internal readonly partial struct CorrectionScaleShader(
}
}
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[ThreadGroupSize(InflateSettings.RowGroupWidth, InflateSettings.RowGroupHeight, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GaussSeidelShader(
ReadWriteBuffer<uint> mask,
+2
ファイルの表示
@@ -10,6 +10,8 @@ internal static class InflateSettings
public const float CoverageThreshold = 0.5f;
public const uint CoarseSolidCount = 3u;
public const uint CoarsePairCount = 2u;
public const int RowGroupWidth = 32;
public const int RowGroupHeight = 2;
public const int CorrectionGroupSize = 8;
public const int CorrectionGroupThreads = CorrectionGroupSize * CorrectionGroupSize;
public const int CorrectionReduceThreads = 256;