格子を読む処理のスレッドグループを横長にする
このコミットが含まれているのは:
2ファイル変更
+6
-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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする