Centralize function pointer accessors in T4 templates

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-15 15:01:16 +02:00
1 親 2c9fda857b
コミット f5f094e632
6ファイル変更
+721 -131

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

@@ -3,6 +3,8 @@
using System;
#pragma warning disable CS0649
namespace ComputeSharp.NetStandard.System.Runtime.InteropServices; // This cannot be in System.Runtime.InteropServices, or Roslyn will recognize it
/// <summary>
@@ -14,4 +16,16 @@ namespace ComputeSharp.NetStandard.System.Runtime.InteropServices; // This canno
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
internal sealed class UnmanagedCallersOnlyAttribute : Attribute
{
/// <summary>
/// Optional. If omitted, the runtime will use the default platform calling convention.
/// </summary>
/// <remarks>
/// Supplied types must be from the official "System.Runtime.CompilerServices" namespace and be of the form "CallConvXXX".
/// </remarks>
public Type[]? CallConvs;
/// <summary>
/// Optional. If omitted, no named export is emitted during compilation.
/// </summary>
public string? EntryPoint;
}