Fix [GroupShared] HLSL generation, add unit tests

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-08 11:17:07 +01:00
1 親 e564864b6c
コミット 689e0e7202
2ファイル変更
+89 -1

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

+1 -1
ファイルの表示
@@ -680,7 +680,7 @@ public sealed partial class IShaderGenerator
// Shared buffers
foreach (var (bufferName, bufferType, bufferCount) in sharedBuffers)
{
object count = (object?)bufferCount ?? "threadsX * threadsY * threadsZ";
object count = (object?)bufferCount ?? "__GroupSize__get_X * __GroupSize__get_Y * __GroupSize__get_Z";
AppendLF();
AppendLineAndLF($"groupshared {bufferType} {bufferName} [{count}];");