Fix conditional Write[If] methods for indented writer
このコミットが含まれているのは:
1 親
819908db16
コミット
876d419b0f
3ファイル変更
+158
-46
検索条件に一致するファイルはありません
+1
-1
@@ -33,7 +33,7 @@ partial class ComputeShaderDescriptorGenerator
|
||||
// Append the statements for the dispatch ranges
|
||||
writer.WriteLine("global::System.Runtime.CompilerServices.Unsafe.As<byte, uint>(ref span[0]) = (uint)x;");
|
||||
writer.WriteLine("global::System.Runtime.CompilerServices.Unsafe.As<byte, uint>(ref span[4]) = (uint)y;");
|
||||
writer.WriteLineIf("global::System.Runtime.CompilerServices.Unsafe.As<byte, uint>(ref span[8]) = (uint)z;", !info.IsPixelShaderLike);
|
||||
writer.WriteLineIf(!info.IsPixelShaderLike, "global::System.Runtime.CompilerServices.Unsafe.As<byte, uint>(ref span[8]) = (uint)z;");
|
||||
|
||||
// Generate loading statements for each captured field
|
||||
foreach (FieldInfo fieldInfo in info.Fields)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする