Add ILLink file for ComputeSharp configuration

このコミットが含まれているのは:
Sergio Pedri committed 2023-06-25 12:22:45 +02:00
1 親 2a5db1adad
コミット a2b7fbd841
3ファイル変更
+36 -3

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

+5
ファイルの表示
@@ -28,6 +28,11 @@
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
</ItemGroup>
<!-- Include the ILLink file on the .NET 6 target (to properly trim configuration switches in publish builds) -->
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<EmbeddedResource Include="Properties\ILLink.Substitutions.xml" LogicalName="ILLink.Substitutions.xml" />
</ItemGroup>
<!-- T4 template generation service (the .tt/.g.cs files are resolved in the .targets file) -->
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
+3 -3
ファイルの表示
@@ -24,17 +24,17 @@ internal static class Configuration
private const string DisableGpuTimeout = "COMPUTESHARP_DISABLE_GPU_TIMEOUT";
/// <summary>
/// Indicates whether or not the debug output is enabled.
/// Indicates whether or not the debug output is enabled (defaults to <see langword="false"/>).
/// </summary>
public static readonly bool IsDebugOutputEnabled = GetConfigurationValue(EnableDebugOutput);
/// <summary>
/// Indicates whether or not the debug output is enabled.
/// Indicates whether or not the debug output is enabled (defaults to <see langword="false"/>).
/// </summary>
public static readonly bool IsDeviceRemovedExtendedDataEnabled = GetConfigurationValue(EnableDeviceRemovedExtendedDataInfo);
/// <summary>
/// Indicates whether or not the GPU timeout is disabled.
/// Indicates whether or not the GPU timeout is disabled (defaults to <see langword="false"/>).
/// </summary>
public static readonly bool IsGpuTimeoutDisabled = GetConfigurationValue(DisableGpuTimeout);
+28
ファイルの表示
@@ -0,0 +1,28 @@
<linker>
<assembly fullname="ComputeSharp">
<!-- COMPUTESHARP_ENABLE_DEBUG_OUTPUT switch -->
<type fullname="Configuration" feature="COMPUTESHARP_ENABLE_DEBUG_OUTPUT" featurevalue="true">
<field name="IsDebugOutputEnabled" value="true" />
</type>
<type fullname="Configuration" feature="COMPUTESHARP_ENABLE_DEBUG_OUTPUT" featurevalue="false">
<field name="IsDebugOutputEnabled" value="false" />
</type>
<!-- COMPUTESHARP_ENABLE_DEVICE_REMOVED_EXTENDED_DATA switch -->
<type fullname="Configuration" feature="COMPUTESHARP_ENABLE_DEVICE_REMOVED_EXTENDED_DATA" featurevalue="true">
<field name="IsDeviceRemovedExtendedDataEnabled" value="true" />
</type>
<type fullname="Configuration" feature="COMPUTESHARP_ENABLE_DEVICE_REMOVED_EXTENDED_DATA" featurevalue="false">
<field name="IsDeviceRemovedExtendedDataEnabled" value="false" />
</type>
<!-- COMPUTESHARP_DISABLE_GPU_TIMEOUT switch -->
<type fullname="Configuration" feature="COMPUTESHARP_DISABLE_GPU_TIMEOUT" featurevalue="true">
<field name="IsGpuTimeoutDisabled" value="true" />
</type>
<type fullname="Configuration" feature="COMPUTESHARP_DISABLE_GPU_TIMEOUT" featurevalue="false">
<field name="IsGpuTimeoutDisabled" value="false" />
</type>
</assembly>
</linker>