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())
|
||||
{
|
||||
|
||||
+4
-4
@@ -281,7 +281,7 @@ public class Test_D2DPixelShaderDescriptorGenerator
|
||||
/// <returns>The marshalled <see cref="global::MyNamespace.MyShader"/> instance.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[SkipLocalsInit]
|
||||
public static global::MyNamespace.MyShader ToManaged(in ConstantBuffer buffer)
|
||||
public static global::MyNamespace.MyShader ToManaged(ref readonly ConstantBuffer buffer)
|
||||
{
|
||||
Unsafe.SkipInit(out global::MyNamespace.MyShader shader);
|
||||
|
||||
@@ -583,7 +583,7 @@ public class Test_D2DPixelShaderDescriptorGenerator
|
||||
/// <returns>The marshalled <see cref="global::MyNamespace.MyShader"/> instance.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[SkipLocalsInit]
|
||||
public static global::MyNamespace.MyShader ToManaged(in ConstantBuffer buffer)
|
||||
public static global::MyNamespace.MyShader ToManaged(ref readonly ConstantBuffer buffer)
|
||||
{
|
||||
Unsafe.SkipInit(out global::MyNamespace.MyShader shader);
|
||||
|
||||
@@ -933,7 +933,7 @@ public class Test_D2DPixelShaderDescriptorGenerator
|
||||
/// <returns>The marshalled <see cref="global::MyNamespace.MyShader"/> instance.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[SkipLocalsInit]
|
||||
public static global::MyNamespace.MyShader ToManaged(in ConstantBuffer buffer)
|
||||
public static global::MyNamespace.MyShader ToManaged(ref readonly ConstantBuffer buffer)
|
||||
{
|
||||
Unsafe.SkipInit(out global::MyNamespace.MyShader shader);
|
||||
|
||||
@@ -1231,7 +1231,7 @@ public class Test_D2DPixelShaderDescriptorGenerator
|
||||
/// <returns>The marshalled <see cref="global::MyNamespace.MyShader"/> instance.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[SkipLocalsInit]
|
||||
public static global::MyNamespace.MyShader ToManaged(in ConstantBuffer buffer)
|
||||
public static global::MyNamespace.MyShader ToManaged(ref readonly ConstantBuffer buffer)
|
||||
{
|
||||
Unsafe.SkipInit(out global::MyNamespace.MyShader shader);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする