Fix two issues with generated dispatching logic

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-30 03:20:00 +02:00
1 親 1be2ae1fc9
コミット fe385da3a0
2ファイル変更
+4 -1

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

@@ -64,7 +64,7 @@ partial class ID2D1ShaderGenerator
// global::System.Runtime.CompilerServices.Unsafe.AsRef(in this.<FIELD_PATH>)[N] = buffer.<CONSTANT_BUFFER_ROW_N_PATH>;
for (int j = 0; j < matrix.Rows; j++)
{
writer.WriteLine($"global::System.Runtime.CompilerServices.Unsafe.AsRef(in this.{fieldPath})[0] = buffer.{fieldNamePrefix}_{j};");
writer.WriteLine($"global::System.Runtime.CompilerServices.Unsafe.AsRef(in this.{fieldPath})[{j}] = buffer.{fieldNamePrefix}_{j};");
}
break;
@@ -62,6 +62,9 @@ partial class ID2D1ShaderGenerator
break;
}
}
writer.WriteLine();
writer.WriteLine("loader.LoadConstantBuffer(new global::System.ReadOnlySpan<byte>(&buffer, sizeof(global::ComputeSharp.D2D1.Generated.ConstantBuffer)));");
}
}
}