Use 'ref readonly' for 'ToManaged' parameter
このコミットが含まれているのは:
1 親
d2838e46fd
コミット
345b13141a
2ファイル変更
+5
-5
検索条件に一致するファイルはありません
+1
-1
@@ -199,7 +199,7 @@ partial class ConstantBufferSyntaxProcessor
|
||||
writer.WriteLine($"""/// <returns>The marshalled <see cref="{fullyQualifiedTypeName}"/> instance.</returns>""");
|
||||
writer.WriteLine($"""[MethodImpl(MethodImplOptions.AggressiveInlining)]""");
|
||||
writer.WriteLine($"""[SkipLocalsInit]""");
|
||||
writer.WriteLine($"public static {fullyQualifiedTypeName} ToManaged(in ConstantBuffer buffer)");
|
||||
writer.WriteLine($"public static {fullyQualifiedTypeName} ToManaged(ref readonly ConstantBuffer buffer)");
|
||||
|
||||
using (writer.WriteBlock())
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする