From a2b7fbd841556a4fbad89989b8479ac06c312e58 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 24 Jun 2023 12:41:26 +0200 Subject: [PATCH] Add ILLink file for ComputeSharp configuration --- src/ComputeSharp/ComputeSharp.csproj | 5 ++++ src/ComputeSharp/Properties/Configuration.cs | 6 ++-- .../Properties/ILLink.Substitutions.xml | 28 +++++++++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 src/ComputeSharp/Properties/ILLink.Substitutions.xml diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 272a33ff..0ad1927a 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -28,6 +28,11 @@ + + + + + diff --git a/src/ComputeSharp/Properties/Configuration.cs b/src/ComputeSharp/Properties/Configuration.cs index e5e96e46..ce7ee04a 100644 --- a/src/ComputeSharp/Properties/Configuration.cs +++ b/src/ComputeSharp/Properties/Configuration.cs @@ -24,17 +24,17 @@ internal static class Configuration private const string DisableGpuTimeout = "COMPUTESHARP_DISABLE_GPU_TIMEOUT"; /// - /// Indicates whether or not the debug output is enabled. + /// Indicates whether or not the debug output is enabled (defaults to ). /// public static readonly bool IsDebugOutputEnabled = GetConfigurationValue(EnableDebugOutput); /// - /// Indicates whether or not the debug output is enabled. + /// Indicates whether or not the debug output is enabled (defaults to ). /// public static readonly bool IsDeviceRemovedExtendedDataEnabled = GetConfigurationValue(EnableDeviceRemovedExtendedDataInfo); /// - /// Indicates whether or not the GPU timeout is disabled. + /// Indicates whether or not the GPU timeout is disabled (defaults to ). /// public static readonly bool IsGpuTimeoutDisabled = GetConfigurationValue(DisableGpuTimeout); diff --git a/src/ComputeSharp/Properties/ILLink.Substitutions.xml b/src/ComputeSharp/Properties/ILLink.Substitutions.xml new file mode 100644 index 00000000..73ac251b --- /dev/null +++ b/src/ComputeSharp/Properties/ILLink.Substitutions.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file