From 16ccc67bd957e85177e7102455d508f55c304537 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jun 2022 13:46:46 +0200 Subject: [PATCH 01/38] Add configuration switch to enable DRED Using "COMPUTESHARP_ENABLE_DEVICE_REMOVED_EXTENDED_DATA" --- .../Helpers/DeviceHelper.Enumerator.cs | 2 + .../Graphics/Helpers/DeviceHelper.Factory.cs | 52 ++++++++++++++++ .../Graphics/Helpers/DeviceHelper.cs | 4 ++ src/ComputeSharp/Properties/Configuration.cs | 10 +++ .../DirectX/um/d3d12/D3D12_DRED_ENABLEMENT.cs | 14 +++++ ...ID3D12DeviceRemovedExtendedDataSettings.cs | 62 +++++++++++++++++++ .../TerraFX.Interop.Windows.projitems | 2 + 7 files changed, 146 insertions(+) create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_ENABLEMENT.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs index 795cc5d2..d28e9b75 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs @@ -105,6 +105,8 @@ internal static partial class DeviceHelper { this.isInitialized = true; + EnsureDeviceRemovedExtendedDataConfiguration(); + fixed (IDXGIFactory6** dxgiFactory6 = this.dxgiFactory6) { CreateDXGIFactory6(dxgiFactory6); diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs index 95b02175..dacfc5ff 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs @@ -1,8 +1,12 @@ using System.Collections.Generic; +using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +#pragma warning disable CA1416 + namespace ComputeSharp.Graphics.Helpers; /// @@ -18,6 +22,54 @@ internal static partial class DeviceHelper /// private static readonly Dictionary> D3D12InfoQueueMap = new(); + /// + /// Indicates whether or not DRED is enabled (see ). + /// + private static volatile bool IsDeviceRemovedExtendedDataConfigurationEnabled; + + /// + /// Ensures the DRED settings are enabled, if not already. If DRED is not configured, this method does nothing. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static unsafe void EnsureDeviceRemovedExtendedDataConfiguration() + { + // Enables DRED, if not enabled already + [MethodImpl(MethodImplOptions.NoInlining)] + static void EnableDeviceRemovedExtendedDataConfigurationIfNeeded() + { + if (IsDeviceRemovedExtendedDataConfigurationEnabled) + { + return; + } + + lock (DevicesCache) + { + if (IsDeviceRemovedExtendedDataConfigurationEnabled) + { + return; + } + + using ComPtr d3D12DeviceRemovedExtendedDataSettings = default; + + DirectX.D3D12GetDebugInterface( + riid: Windows.__uuidof(), + ppvDebug: d3D12DeviceRemovedExtendedDataSettings.GetVoidAddressOf()).Assert(); + + // Enable the auto-breadcrumbs and page faults reporting + d3D12DeviceRemovedExtendedDataSettings.Get()->SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); + d3D12DeviceRemovedExtendedDataSettings.Get()->SetPageFaultEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); + + IsDeviceRemovedExtendedDataConfigurationEnabled = true; + } + } + + // If the app context switch is set, ensure the DRED setting is enabled + if (Configuration.IsDeviceRemovedExtendedDataEnabled) + { + EnableDeviceRemovedExtendedDataConfigurationIfNeeded(); + } + } + /// /// Retrieves a instance for an object. /// diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs index d31e3065..bc5d79b3 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs @@ -81,6 +81,8 @@ internal static partial class DeviceHelper /// Whether a default device was found with the requested feature level. private static unsafe bool TryGetDefaultDevice(ID3D12Device** d3D12Device, IDXGIAdapter** dxgiAdapter, DXGI_ADAPTER_DESC1* dxgiDescription1) { + EnsureDeviceRemovedExtendedDataConfiguration(); + using ComPtr dxgiFactory6 = default; CreateDXGIFactory6(dxgiFactory6.GetAddressOf()); @@ -173,6 +175,8 @@ internal static partial class DeviceHelper /// Whether a warp device was created successfully. private static unsafe bool TryGetWarpDevice(ID3D12Device** d3D12Device, IDXGIAdapter** dxgiAdapter, DXGI_ADAPTER_DESC1* dxgiDescription1) { + EnsureDeviceRemovedExtendedDataConfiguration(); + using ComPtr dxgiFactory6 = default; CreateDXGIFactory6(dxgiFactory6.GetAddressOf()); diff --git a/src/ComputeSharp/Properties/Configuration.cs b/src/ComputeSharp/Properties/Configuration.cs index ab805bcb..5907cfff 100644 --- a/src/ComputeSharp/Properties/Configuration.cs +++ b/src/ComputeSharp/Properties/Configuration.cs @@ -13,11 +13,21 @@ internal static class Configuration /// private const string EnableDebugOutput = "COMPUTESHARP_ENABLE_DEBUG_OUTPUT"; + /// + /// The configuration property name for . + /// + private const string EnableDeviceRemovedExtendedDataInfo = "COMPUTESHARP_ENABLE_DEVICE_REMOVED_EXTENDED_DATA"; + /// /// Indicates whether or not the debug output is enabled. /// public static readonly bool IsDebugOutputEnabled = GetConfigurationValue(EnableDebugOutput); + /// + /// Indicates whether or not the debug output is enabled. + /// + public static readonly bool IsDeviceRemovedExtendedDataEnabled = GetConfigurationValue(EnableDeviceRemovedExtendedDataInfo); + /// /// Gets a configuration value for a specified property. /// diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_ENABLEMENT.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_ENABLEMENT.cs new file mode 100644 index 00000000..d3fb1b22 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_ENABLEMENT.cs @@ -0,0 +1,14 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +namespace TerraFX.Interop.DirectX +{ + internal enum D3D12_DRED_ENABLEMENT + { + D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0, + D3D12_DRED_ENABLEMENT_FORCED_OFF = 1, + D3D12_DRED_ENABLEMENT_FORCED_ON = 2, + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs new file mode 100644 index 00000000..f8378e6e --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs @@ -0,0 +1,62 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + [Guid("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")] + [NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] + [NativeInheritance("IUnknown")] + internal unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings + { + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(3)] + public void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(4)] + public void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement) + { + ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + } + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems index 72e40d22..47368458 100644 --- a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems +++ b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems @@ -98,6 +98,7 @@ + @@ -188,6 +189,7 @@ + From 1fa665fe88a0bd163feba095407cbc000e8f0196 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jun 2022 14:02:18 +0200 Subject: [PATCH 02/38] Reduce ID3D12InfoQueue debug output allocations --- .../Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs index 2ceec2b1..8a4341ee 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs @@ -16,6 +16,11 @@ namespace ComputeSharp.Graphics.Helpers; /// internal static partial class DeviceHelper { + /// + /// A shared used from to create messages. + /// + private static StringBuilder? infoQueueMessageBuilder; + /// /// Flushes all the pending debug messages for all existing instances to the console/debugger. /// It also checks whether or not there are any error messages being logged that didn't result in an actual crash yet. @@ -27,7 +32,7 @@ internal static partial class DeviceHelper lock (DevicesCache) { - StringBuilder builder = new(1024); + StringBuilder builder = infoQueueMessageBuilder ??= new(1024); foreach (var pair in D3D12InfoQueueMap) { From 878f6da3291c47410e8855aeee7c3e017c2d2d47 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jun 2022 14:14:16 +0200 Subject: [PATCH 03/38] Improve debug output when a device is removed --- .../Helpers/DeviceHelper.ID3D12InfoQueue.cs | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs index 8a4341ee..d8c521c4 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs @@ -4,6 +4,7 @@ using System.Text; using CommunityToolkit.Diagnostics; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.DirectX.D3D12_MESSAGE_ID; using static TerraFX.Interop.DirectX.D3D12_MESSAGE_SEVERITY; #if NET6_0_OR_GREATER using Enum = System.Enum; @@ -58,6 +59,29 @@ internal static partial class DeviceHelper builder.AppendLine($"[Category]: {Enum.GetName(message->Category)}"); builder.AppendLine($"[Severity]: {Enum.GetName(message->Severity)}"); builder.AppendLine($"[ID]: {Enum.GetName(message->ID)}"); + + // Special handling for device removal messages + if (message->ID is D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT) + { + HRESULT result = device.D3D12Device->GetDeviceRemovedReason(); + + // If the device removal reason is available, also include that in the output message + if (result != S.S_OK) + { + string deviceRemovalReason = (int)result switch + { + DXGI.DXGI_ERROR_DEVICE_HUNG => nameof(DXGI.DXGI_ERROR_DEVICE_HUNG), + DXGI.DXGI_ERROR_DEVICE_REMOVED => nameof(DXGI.DXGI_ERROR_DEVICE_REMOVED), + DXGI.DXGI_ERROR_DEVICE_RESET => nameof(DXGI.DXGI_ERROR_DEVICE_RESET), + DXGI.DXGI_ERROR_DRIVER_INTERNAL_ERROR => nameof(DXGI.DXGI_ERROR_DRIVER_INTERNAL_ERROR), + DXGI.DXGI_ERROR_INVALID_CALL => nameof(DXGI.DXGI_ERROR_INVALID_CALL), + _ => ThrowHelper.ThrowArgumentOutOfRangeException("Invalid GetDeviceRemovedReason HRESULT.") + }; + + builder.AppendLine($"[Reason]: {deviceRemovalReason}"); + } + } + builder.Append($"[Description]: \"{new string(message->pDescription)}\""); } finally @@ -74,29 +98,6 @@ internal static partial class DeviceHelper } queue->ClearStoredMessages(); - - HRESULT result = device.D3D12Device->GetDeviceRemovedReason(); - - if (result != S.S_OK) - { - string message = (int)result switch - { - DXGI.DXGI_ERROR_DEVICE_HUNG => nameof(DXGI.DXGI_ERROR_DEVICE_HUNG), - DXGI.DXGI_ERROR_DEVICE_REMOVED => nameof(DXGI.DXGI_ERROR_DEVICE_REMOVED), - DXGI.DXGI_ERROR_DEVICE_RESET => nameof(DXGI.DXGI_ERROR_DEVICE_RESET), - DXGI.DXGI_ERROR_DRIVER_INTERNAL_ERROR => nameof(DXGI.DXGI_ERROR_DRIVER_INTERNAL_ERROR), - DXGI.DXGI_ERROR_INVALID_CALL => nameof(DXGI.DXGI_ERROR_INVALID_CALL), - _ => ThrowHelper.ThrowArgumentOutOfRangeException("Invalid GetDeviceRemovedReason HRESULT.") - }; - - builder.Clear(); - builder.AppendLine($"[D3D12 device \"{device}\" removed (HW: {device.IsHardwareAccelerated}, UMA: {device.IsCacheCoherentUMA})]"); - builder.AppendLine($"[Reason]: {message}"); - - hasErrorsOrWarnings = true; - - Trace.WriteLine(builder); - } } } From 639bcb75e1dfb1e0c923226a5fb8fc9a70498793 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jun 2022 16:22:45 +0200 Subject: [PATCH 04/38] Code refactoring, always use DXGIFactory6 as entry point --- .../Helpers/SwapChainManager.cs | 6 ++-- .../Helpers/DeviceHelper.IDXGIFactory6.cs | 32 +++++++++++-------- .../DirectX/shared/dxgi1_6/IDXGIFactory6.cs | 7 ++++ 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/ComputeSharp.UI/Helpers/SwapChainManager.cs b/src/ComputeSharp.UI/Helpers/SwapChainManager.cs index 835faaca..66417e4d 100644 --- a/src/ComputeSharp.UI/Helpers/SwapChainManager.cs +++ b/src/ComputeSharp.UI/Helpers/SwapChainManager.cs @@ -483,13 +483,13 @@ internal sealed unsafe partial class SwapChainManager : NativeObject /// private unsafe partial void OnGetDynamicResolutionManager(out DynamicResolutionManager resolutionManager) { - using ComPtr dxgiFactory4 = default; + using ComPtr dxgiFactory6 = default; - DeviceHelper.CreateDXGIFactory4(dxgiFactory4.GetAddressOf()); + DeviceHelper.CreateDXGIFactory6(dxgiFactory6.GetAddressOf()); using ComPtr dxgiAdapter = default; - dxgiFactory4.Get()->EnumAdapters(0, dxgiAdapter.GetAddressOf()).Assert(); + dxgiFactory6.Get()->EnumAdapters(0, dxgiAdapter.GetAddressOf()).Assert(); int targetFramerate = dxgiAdapter.Get()->GetCompositionRefreshRate(DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM); diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs index ce5158bf..f8b28b9e 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs @@ -27,20 +27,6 @@ internal static partial class DeviceHelper Configuration.IsDebugOutputEnabled ? (uint)DXGI.DXGI_CREATE_FACTORY_DEBUG : 0; #endif - /// - /// Creates a new instance to be used to enumerate devices. - /// - /// The resulting instance. - internal static unsafe void CreateDXGIFactory4(IDXGIFactory4** dxgiFactory4) - { - if (Configuration.IsDebugOutputEnabled) - { - EnableDebugMode(); - } - - DirectX.CreateDXGIFactory2(IDXGIFactoryCreationFlags, Windows.__uuidof(), (void**)dxgiFactory4).Assert(); - } - /// /// Creates a new instance to be used to enumerate devices. /// @@ -104,6 +90,10 @@ internal static partial class DeviceHelper [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate uint ReleaseDelegate(IDXGIFactory4As6Backcompat* @this); + /// + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + private delegate int EnumAdaptersDelegate(IDXGIFactory4As6Backcompat* @this, uint Adapter, IDXGIAdapter** ppAdapter); + /// [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate int EnumWarpAdapterDelegate(IDXGIFactory4As6Backcompat* @this, Guid* riid, void** ppvAdapter); @@ -117,6 +107,11 @@ internal static partial class DeviceHelper /// private static readonly ReleaseDelegate ReleaseWrapper = Release; + /// + /// A cached instance wrapping . + /// + private static readonly EnumAdaptersDelegate EnumAdaptersWrapper = EnumAdapters; + /// /// A cached instance wrapping . /// @@ -145,10 +140,12 @@ internal static partial class DeviceHelper #if NET6_0_OR_GREATER lpVtbl[2] = (delegate* unmanaged)&Release; + lpVtbl[7] = (delegate* unmanaged)&EnumAdapters; lpVtbl[27] = (delegate* unmanaged)&EnumWarpAdapter; lpVtbl[29] = (delegate* unmanaged)&EnumAdapterByGpuPreference; #else lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ReleaseWrapper); + lpVtbl[7] = (void*)Marshal.GetFunctionPointerForDelegate(EnumAdaptersWrapper); lpVtbl[27] = (void*)Marshal.GetFunctionPointerForDelegate(EnumWarpAdapterWrapper); lpVtbl[29] = (void*)Marshal.GetFunctionPointerForDelegate(EnumAdapterByGpuPreferenceWrapper); #endif @@ -194,6 +191,13 @@ internal static partial class DeviceHelper return 0; } + /// + [UnmanagedCallersOnly] + public static int EnumAdapters(IDXGIFactory4As6Backcompat* @this, uint Adapter, IDXGIAdapter** ppAdapter) + { + return @this->dxgiFactory4->EnumAdapters(Adapter, ppAdapter); + } + /// [UnmanagedCallersOnly] public static int EnumWarpAdapter(IDXGIFactory4As6Backcompat* @this, Guid* riid, void** ppvAdapter) diff --git a/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs index 50c34e5e..e5674032 100644 --- a/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs +++ b/src/TerraFX.Interop.Windows/DirectX/shared/dxgi1_6/IDXGIFactory6.cs @@ -42,6 +42,13 @@ namespace TerraFX.Interop.DirectX return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDXGIFactory6*)Unsafe.AsPointer(ref this)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(7)] + public HRESULT EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, ppAdapter); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(24)] public HRESULT CreateSwapChainForComposition(IUnknown* pDevice, [NativeTypeName("const DXGI_SWAP_CHAIN_DESC1 *")] DXGI_SWAP_CHAIN_DESC1* pDesc, IDXGIOutput* pRestrictToOutput, IDXGISwapChain1** ppSwapChain) From c0994486bf3a6243693788e81bba4cd38907e142 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jun 2022 16:41:44 +0200 Subject: [PATCH 05/38] Centralize ID3D12DeviceRemovedExtendedDataSettings setup --- .../Interop/ID3D12ResourceExtensions.cs | 5 +- .../Helpers/DeviceHelper.Enumerator.cs | 2 - .../Graphics/Helpers/DeviceHelper.Factory.cs | 52 ------------------- .../Helpers/DeviceHelper.IDXGIFactory6.cs | 25 ++++++++- .../Graphics/Helpers/DeviceHelper.cs | 4 -- 5 files changed, 25 insertions(+), 63 deletions(-) diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12ResourceExtensions.cs b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12ResourceExtensions.cs index 3d46e96e..fdca3723 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12ResourceExtensions.cs +++ b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12ResourceExtensions.cs @@ -17,6 +17,7 @@ internal static unsafe class ID3D12ResourceExtensions /// /// The target to map. /// A instance representing the mapped resource. + /// Thrown when the mapping operation fails. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ID3D12ResourceMap Map(this ref ID3D12Resource d3D12Resource) { @@ -32,7 +33,6 @@ internal static unsafe class ID3D12ResourceExtensions /// /// The target to map. /// A pointer to the mapped area for . - /// Thrown when the mapping operation fails. /// Only use this method to unmap resources that were mapped with . [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Unmap(this ref ID3D12Resource d3D12Resource) @@ -43,9 +43,8 @@ internal static unsafe class ID3D12ResourceExtensions /// /// Assigns a name to a given . /// - /// The target to map. + /// The target to set the name for. /// The wrapper object to get the name from. - /// Thrown when the mapping operation fails. [Conditional("DEBUG")] public static void SetName(this ref ID3D12Resource d3D12Resource, object wrapper) { diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs index d28e9b75..795cc5d2 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs @@ -105,8 +105,6 @@ internal static partial class DeviceHelper { this.isInitialized = true; - EnsureDeviceRemovedExtendedDataConfiguration(); - fixed (IDXGIFactory6** dxgiFactory6 = this.dxgiFactory6) { CreateDXGIFactory6(dxgiFactory6); diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs index dacfc5ff..95b02175 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs @@ -1,12 +1,8 @@ using System.Collections.Generic; -using System.Runtime.CompilerServices; -using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#pragma warning disable CA1416 - namespace ComputeSharp.Graphics.Helpers; /// @@ -22,54 +18,6 @@ internal static partial class DeviceHelper /// private static readonly Dictionary> D3D12InfoQueueMap = new(); - /// - /// Indicates whether or not DRED is enabled (see ). - /// - private static volatile bool IsDeviceRemovedExtendedDataConfigurationEnabled; - - /// - /// Ensures the DRED settings are enabled, if not already. If DRED is not configured, this method does nothing. - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static unsafe void EnsureDeviceRemovedExtendedDataConfiguration() - { - // Enables DRED, if not enabled already - [MethodImpl(MethodImplOptions.NoInlining)] - static void EnableDeviceRemovedExtendedDataConfigurationIfNeeded() - { - if (IsDeviceRemovedExtendedDataConfigurationEnabled) - { - return; - } - - lock (DevicesCache) - { - if (IsDeviceRemovedExtendedDataConfigurationEnabled) - { - return; - } - - using ComPtr d3D12DeviceRemovedExtendedDataSettings = default; - - DirectX.D3D12GetDebugInterface( - riid: Windows.__uuidof(), - ppvDebug: d3D12DeviceRemovedExtendedDataSettings.GetVoidAddressOf()).Assert(); - - // Enable the auto-breadcrumbs and page faults reporting - d3D12DeviceRemovedExtendedDataSettings.Get()->SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); - d3D12DeviceRemovedExtendedDataSettings.Get()->SetPageFaultEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); - - IsDeviceRemovedExtendedDataConfigurationEnabled = true; - } - } - - // If the app context switch is set, ensure the DRED setting is enabled - if (Configuration.IsDeviceRemovedExtendedDataEnabled) - { - EnableDeviceRemovedExtendedDataConfigurationIfNeeded(); - } - } - /// /// Retrieves a instance for an object. /// diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs index f8b28b9e..c85dcb01 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs @@ -33,13 +33,18 @@ internal static partial class DeviceHelper /// The resulting instance. internal static unsafe void CreateDXGIFactory6(IDXGIFactory6** dxgiFactory6) { - using ComPtr dxgiFactory4 = default; - if (Configuration.IsDebugOutputEnabled) { EnableDebugMode(); } + if (Configuration.IsDeviceRemovedExtendedDataEnabled) + { + EnableDeviceRemovedExtendedDataConfiguration(); + } + + using ComPtr dxgiFactory4 = default; + DirectX.CreateDXGIFactory2(IDXGIFactoryCreationFlags, Windows.__uuidof(), dxgiFactory4.GetVoidAddressOf()).Assert(); HRESULT result = dxgiFactory4.CopyTo(dxgiFactory6); @@ -80,6 +85,22 @@ internal static partial class DeviceHelper } } + /// + /// Enables the DRED settings are enabled (see ). + /// + private static unsafe void EnableDeviceRemovedExtendedDataConfiguration() + { + using ComPtr d3D12DeviceRemovedExtendedDataSettings = default; + + DirectX.D3D12GetDebugInterface( + riid: Windows.__uuidof(), + ppvDebug: d3D12DeviceRemovedExtendedDataSettings.GetVoidAddressOf()).Assert(); + + // Enable the auto-breadcrumbs and page faults reporting + d3D12DeviceRemovedExtendedDataSettings.Get()->SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); + d3D12DeviceRemovedExtendedDataSettings.Get()->SetPageFaultEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); + } + /// /// A custom fallback implementation to use on systems with no support for it. /// diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs index bc5d79b3..d31e3065 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.cs @@ -81,8 +81,6 @@ internal static partial class DeviceHelper /// Whether a default device was found with the requested feature level. private static unsafe bool TryGetDefaultDevice(ID3D12Device** d3D12Device, IDXGIAdapter** dxgiAdapter, DXGI_ADAPTER_DESC1* dxgiDescription1) { - EnsureDeviceRemovedExtendedDataConfiguration(); - using ComPtr dxgiFactory6 = default; CreateDXGIFactory6(dxgiFactory6.GetAddressOf()); @@ -175,8 +173,6 @@ internal static partial class DeviceHelper /// Whether a warp device was created successfully. private static unsafe bool TryGetWarpDevice(ID3D12Device** d3D12Device, IDXGIAdapter** dxgiAdapter, DXGI_ADAPTER_DESC1* dxgiDescription1) { - EnsureDeviceRemovedExtendedDataConfiguration(); - using ComPtr dxgiFactory6 = default; CreateDXGIFactory6(dxgiFactory6.GetAddressOf()); From 8d98185263286bc8598518f63e65ae33e8998962 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 02:20:51 +0200 Subject: [PATCH 06/38] Add empty ComputeSharp.Pix project --- ComputeSharp.sln | 14 ++++ src/ComputeSharp.Pix/ComputeSharp.Pix.csproj | 67 ++++++++++++++++++ .../Libraries/arm64/WinPixEventRuntime.dll | Bin 0 -> 53416 bytes .../arm64/WinPixEventRuntime_UAP.dll | Bin 0 -> 52904 bytes .../Libraries/x64/WinPixEventRuntime.dll | Bin 0 -> 55032 bytes .../Libraries/x64/WinPixEventRuntime_UAP.dll | Bin 0 -> 52424 bytes 6 files changed, 81 insertions(+) create mode 100644 src/ComputeSharp.Pix/ComputeSharp.Pix.csproj create mode 100644 src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime.dll create mode 100644 src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime_UAP.dll create mode 100644 src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime.dll create mode 100644 src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime_UAP.dll diff --git a/ComputeSharp.sln b/ComputeSharp.sln index dc076252..cd2a5fe3 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -100,6 +100,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests.AssemblyLevelAttributes", "tests\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj", "{94178D51-0097-4AD2-B3D0-827E40D62F2E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.Pix", "src\ComputeSharp.Pix\ComputeSharp.Pix.csproj", "{14EF12A3-90E6-4683-BD71-9896AF87026B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -410,6 +412,18 @@ Global {94178D51-0097-4AD2-B3D0-827E40D62F2E}.Release|ARM64.Build.0 = Release|Any CPU {94178D51-0097-4AD2-B3D0-827E40D62F2E}.Release|x64.ActiveCfg = Release|Any CPU {94178D51-0097-4AD2-B3D0-827E40D62F2E}.Release|x64.Build.0 = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|ARM64.Build.0 = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|x64.ActiveCfg = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Debug|x64.Build.0 = Debug|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|Any CPU.Build.0 = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|ARM64.ActiveCfg = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|ARM64.Build.0 = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|x64.ActiveCfg = Release|Any CPU + {14EF12A3-90E6-4683-BD71-9896AF87026B}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj new file mode 100644 index 00000000..d0624211 --- /dev/null +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj @@ -0,0 +1,67 @@ + + + netstandard2.0;net6.0 + bin\Release + ComputeSharp.Pix.xml + AnyCPU;x64;ARM64 + + + + + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime.dll b/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime.dll new file mode 100644 index 0000000000000000000000000000000000000000..0f2d171f4c7abef4a7ae54cbe4295dc376d098af GIT binary patch literal 53416 zcmeFa30PFe(l_2`25`U)Srm=RxC2HU5EYEeATHpFfN>8DFgnO8i-H@A#^92KQKQBz z;u2-hL|h}e8d0;LCb_85YgR!_f}#m-31c*Tzv^=i45-Py@B7~8d%yqx9-o;yy;WCN zS65Y6_u%;Hc}&R|v%;sYjn@=_zw6Uc8$K~P%bzVD4sy;z z`oaEpo!;iK(CIY}3!K(+xW_3AFz4L@r*(iEJ}GcM1vqhkKCeGclJ?h6Fuj_<)(^Lj>eR_=}uHp4hhGr9Led8XHK6Yxc}1>-~g zT0CmTB0Q6$b*VbWrc);o_;}zGhL6Rgh4^@i)mT6U-|eD z%)-aw(GtGol;kMnah`xT%m$z3_*gtzUQZvFh>FA`;uY_A6(t%TEn~wQQvd&c!!+mF zcV$LUj+p>v^GW&1k{&TN}0>3*<{n4oUckO0qh*dZKE~cj`BKtyBRZ6 z|CCqLOlw9Pb4`@yEaA!qF4Q+txvN@vv0Q0i_-K(}dW5_$>gqN=TI6q{GD~_?z@zea zGX?>=1u4z81hd_ZV*mraq_p5+9E-GJq>}gDq{#Igp|HtcNS>&-3 zgN!@dFek#p)BevHw@K-{p&y#=H)rNYi;i>t-ct&N_mzsmyGmtY3S);L{2|R5b1D(o zA+#-0UDTSHFziyPA}a)ADRxJmo8Zs$N|5(x(TRf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@3(JKU|ywNE7BQhXH4nJ*M40Pwo7LAQJ)1GD5d=uMe?ki literal 0 HcmV?d00001 diff --git a/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime_UAP.dll b/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime_UAP.dll new file mode 100644 index 0000000000000000000000000000000000000000..bad0fdd54839046e66083cf2a4e231cf60b13f5c GIT binary patch literal 52904 zcmeFa30zc1vp3vl25<%y5m0eu#0^k!Kvc-01Gs=I0aZ!4MN7nlMqr`>#Idz<`?Mx%WQbec$`t<8P)<7_-8ssfn>8Na@k>@4xvH7_)PE%Z`<(Kkj=(nEY|ya6??0CM7j_ zVQN&OCMGH=DLGvet=FVxBx&N3G-IcQX%drT^`0F&+V+=F=U2HTR%S0AEq{*Q%ouYK z`J*>e$DHG7%9zi1nm*=zq+ggXkNyT}Wp>KwHAvMrmvMOY&BbHR@cfgb#WaoQL*rr$ zg!_IY2^q&&Y_SdNRsVC83{%fsHSHC4z1UQgNG-LYc(>;eMhshgS1@La*X^qE`8Et0 zdMfb&Gk=~hpd@m-$XS$$ZChTN^J0~DHDfD*_~k6d3IN3pGNz$PL8g`_Xai$~W096I zmV(4Bo-tpfcRh)yLt!M0^Tqid~)!ycyt_2pO6ed;t}zR_nS+ZmPf}}Kuhlb-)|w99eY=1vRCNLF3i5p zpRw>VWyFO$E8Z!(qhuzz9)g_b6(GWS0k(dEP;|00%ZGw|X34?nwx~-RR#!hfZ-&;FD2&0aRTGh@(pjKaQdS5p)3rzwz~;ka#d=3isHPXF4DnW=v&t8b?>qm8*f zMthoYWdj%BO;qoqQJ$|-+85thAr##~*(Xg+Tkov!FQPh2dLX6;Reg2lVBm8br{uUT z>s2UMm5(&>dOxLEO>n{}(?p~}{`Z7Gs1jU6_+Soy(9K^X!h1>ia*b&c+8gfCALz+r z{ywHfotYES!Sm%lrUg>IA?%%^o9&tT&Whul|2LFE@lB@XjjwZEAOV=h!EjG-7ysXNB&CWvKaD7&+wyzpjw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qio3J*C#C+9jh_J&ap40vv-ZFZw)@&^CZa%FqX<+2G8Sr`UK> X{GAJ(T`}@Y9OXSj1Iz+YpqchR`VxQ{ literal 0 HcmV?d00001 diff --git a/src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime.dll b/src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime.dll new file mode 100644 index 0000000000000000000000000000000000000000..85069167b916993cc0267a373b2a421ace4b4b9f GIT binary patch literal 55032 zcmeFa34D{q_CNe2P1Q*fGh5RiYdiX6r`XciwdGwQwv%V0nuyT@0sUGn<9Ge?|$C@`+MKddmnwC znK^Uj%*>fHXU?3Nl&sq}aseF2De!u|9JdQ0JqGsu7atkNb?LvS3-@a9;Q_m3=EDPK z7ME1%Dyq^RX>CSE%qe7-dBJ92(Wa<=zM~2E7{*j@f(|WM< zrKuElU$B{lM}`J7`1F#3Vyes6v+N9xD_k4Mt!Vo$-v?{s2I@lPUHWj@fQ%QR8Y-b- z@fvhnjLSJL1kp!S_45N+7Cy~*!OTgVjFWSDMv=3CiDf$??P)Qqc^Su5gD}5><6Z?8 zx0Bt{9+Bouy+j^py;tcCfueAG_^n1}Z!yfg9oJqA=CC!%p&FfumcrMj2n^?MBH zO+t$L29BHP zm;C>Aly@m_4T9J?m8b4O;8F@=YO|PfiK*9-YB)p>FnV@n`0GWC-eT%r34?cq@6O`5 zmSoH;5kLGOrDJ_*$N6Nlpgepx$0fRX!5p2JwZ?5%@lIK~;BE~wJ7v3Q#4^-xaOqB? zDg#JPb9AiJ7{&|X8&E18NnJ+bL9f;{4efC3Pi`>G;2r06yl|2i_M!g!XKI|c*Ba5;R@y>bCsyU3lOF5d5 zgrCt^;S}$vS9!HrAbPn$W((gFg;w*z5l`*}3g<=ZdEo%nmD`!1udSyXKg;b|Xzdix z^lIP6wBy&fZPC0-Tf%B-@@ktUpqdxnXU*olF(08queKaHLX-LpcR0rd)vP(Fo?73k z+$A$`HP?0T5LzCKTK+Meip`M->QKudUoE#wz)%#8MGa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x0abRUK4 z$GUn)J4OR0CYmtZE}DdQu)}L>Nj?d!l`vR%S!7VI-DLm3QaCmHD1SW^9|h(A0jzs7 A)&Kwi literal 0 HcmV?d00001 From 4222a7092a719122fbd38539f41e066b5447844d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 03:09:50 +0200 Subject: [PATCH 07/38] Add PIX license file --- src/ComputeSharp.Pix/LICENSE.txt | 78 ++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/ComputeSharp.Pix/LICENSE.txt diff --git a/src/ComputeSharp.Pix/LICENSE.txt b/src/ComputeSharp.Pix/LICENSE.txt new file mode 100644 index 00000000..7093c406 --- /dev/null +++ b/src/ComputeSharp.Pix/LICENSE.txt @@ -0,0 +1,78 @@ +MICROSOFT SOFTWARE LICENSE TERMS + +PIX EVENT RUNTIME FOR WINDOWS + +IF YOU LIVE IN (OR ARE A BUSINESS WITH A PRINCIPAL PLACE OF BUSINESS IN) THE UNITED STATES, PLEASE READ THE “BINDING ARBITRATION AND CLASS ACTION WAIVER” SECTION BELOW. IT AFFECTS HOW DISPUTES ARE RESOLVED. + +These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They apply to the software named above and any Microsoft services or software updates (except to the extent such services or updates are accompanied by new or additional terms, in which case those different terms apply prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. + +1. INSTALLATION AND USE RIGHTS. + a. General. You may install and use any number of copies of the software to design, develop and test your Microsoft Windows programs. + b. Third Party Software. The software may include third party applications that are licensed to you under this agreement or under their own terms. License terms, notices, and acknowledgements, if any, for the third party applications may be accessible online at http://aka.ms/thirdpartynotices or in an accompanying notices file. Even if such applications are governed by other agreements, the disclaimer, limitations on, and exclusions of damages below also apply to the extent allowed by applicable law. + +2. DISTRIBUTABLE CODE. + a. Distributable Code. The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in programs you develop if you comply with the terms below. + (i) Right to Use and Distribute. + * You may copy and distribute the object code form of the software. + * Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. + (ii) Distribution Requirements. For any Distributable Code you distribute, you must + * add significant primary functionality to it in your programs; + * require distributors and external end users to agree to terms that protect it at least as much as this agreement; + * display your valid copyright notice on your programs; and + * indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. + (iii) Distribution Restrictions. You may not + * alter any copyright, trademark or patent notice in the Distributable Code; + * use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; + * distribute Distributable Code to run on a platform other than a Windows platform; + * include Distributable Code in malicious, deceptive or unlawful programs; or + * modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that + * the code be disclosed or distributed in source code form; or + * others have the right to modify it. + +3. SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to): + a. work around any technical limitations in the software that only allow you to use it in certain ways; + b. reverse engineer, decompile or disassemble the software; + c. remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; + d. use the software in any way that is against the law or to create or propagate malware; or + e. share, publish, distribute, or lend the software, provide the software as a stand-alone hosted solution for others to use, or transfer the software or this agreement to any third party. + +4. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit http://aka.ms/exporting. + +5. SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind. + +6. BINDING ARBITRATION AND CLASS ACTION WAIVER. This Section applies if you live in (or, if a business, your principal place of business is in) the United States. If you and Microsoft have a dispute, you and Microsoft agree to try for 60 days to resolve it informally. If you and Microsoft can’t, you and Microsoft agree to binding individual arbitration before the American Arbitration Association under the Federal Arbitration Act (“FAA”), and not to sue in court in front of a judge or jury. Instead, a neutral arbitrator will decide. Class action lawsuits, class-wide arbitrations, private attorney-general actions, and any other proceeding where someone acts in a representative capacity are not allowed; nor is combining individual proceedings without the consent of all parties. The complete Arbitration Agreement contains more terms and is at http://aka.ms/arb-agreement-1. You and Microsoft agree to these terms. + +7. ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements, updates, or third-party applications, is the entire agreement for the software. + +8. APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United States or Canada, the laws of the state or province where you live (or, if a business, where your principal place of business is located) govern the interpretation of this agreement, claims for its breach, and all other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of laws principles, except that the FAA governs everything related to arbitration. If you acquired the software in any other country, its laws apply, except that the FAA governs everything related to arbitration. If U.S. federal jurisdiction exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County, Washington for all disputes heard in court (excluding arbitration). If not, you and Microsoft consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington for all disputes heard in court (excluding arbitration). + +9. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state, province, or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state, province, or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you: + a. Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights. + b. Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software. + c. Germany and Austria. + (i) Warranty. The properly licensed software will perform substantially as described in any Microsoft materials that accompany the software. However, Microsoft gives no contractual guarantee in relation to the licensed software. + (ii) Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as, in case of death or personal or physical injury, Microsoft is liable according to the statutory law. + Subject to the foregoing clause (ii), Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence. + +10. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. + +11. LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, warranty, guarantee, or condition; strict liability, negligence, or other tort; or any other claim; in each case to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state, province, or country may not allow the exclusion or limitation of incidental, consequential, or other damages. + + +[Please note: As this software is distributed in Canada, some of the clauses in this agreement are provided below in French. + +Remarque: Ce logiciel étant distribué au Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français. + +EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues. + +LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. + +Cette limitation concerne: + * tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers; et + * les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur. + +Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. + +EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.] \ No newline at end of file From d5556daa3669db56f300dc6408b0a3a7b62c9fdf Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 03:09:43 +0200 Subject: [PATCH 08/38] Add PIX set marker extension for ComputeContext --- .../ComputeContextExtensions.cs | 42 ++++++++++++++++++ .../ID3D12GraphicsCommandListExtensions.cs | 43 ++++++++++++++++++ src/ComputeSharp.Pix/Interop/Pix.cs | 44 +++++++++++++++++++ src/ComputeSharp/Properties/AssemblyInfo.cs | 1 + src/ComputeSharp/Shaders/ComputeContext.cs | 8 ++-- 5 files changed, 134 insertions(+), 4 deletions(-) create mode 100644 src/ComputeSharp.Pix/ComputeContextExtensions.cs create mode 100644 src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs create mode 100644 src/ComputeSharp.Pix/Interop/Pix.cs diff --git a/src/ComputeSharp.Pix/ComputeContextExtensions.cs b/src/ComputeSharp.Pix/ComputeContextExtensions.cs new file mode 100644 index 00000000..20b5efbf --- /dev/null +++ b/src/ComputeSharp.Pix/ComputeContextExtensions.cs @@ -0,0 +1,42 @@ +using System; +using ComputeSharp.Graphics.Commands; +using ComputeSharp.Interop; + +namespace ComputeSharp; + +/// +/// A that contains extension methods using PIX APIs for the type. +/// +public static class ComputeContextExtensions +{ + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The message to use for the event. + public static unsafe void BeginEvent(this in ComputeContext context, string message) + { + throw new NotImplementedException(); + } + + /// + /// Ends a PIX event on a target object. + /// + /// The to use to end the PIX event. + public static unsafe void EndEvent(this in ComputeContext context) + { + throw new NotImplementedException(); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The message to use for the marker. + public static unsafe void Log(this in ComputeContext context, string message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + commandList.D3D12GraphicsCommandList->SetPixMarker(message); + } +} diff --git a/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs new file mode 100644 index 00000000..a423bd61 --- /dev/null +++ b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs @@ -0,0 +1,43 @@ +using System.Buffers; +using System.Runtime.CompilerServices; +using System.Text; +using TerraFX.Interop.DirectX; + +namespace ComputeSharp.Interop; + +/// +/// A with extensions for the type. +/// +internal static class ID3D12GraphicsCommandListExtensions +{ + /// + /// Sets a PIX marker on a target object. + /// + /// The target object. + /// The message to use for the marker. + public static unsafe void SetPixMarker(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, string message) + { + // Rent a byte buffer with space for the null-terminator too + int maxByteLength = Encoding.ASCII.GetMaxByteCount(message.Length) + 1; + byte[] buffer = ArrayPool.Shared.Rent(maxByteLength); + int bytesWritten; + + fixed (byte* bufferPtr = buffer) + { + // Transcode from unicode to ASCII + fixed (char* messagePtr = message) + { + bytesWritten = Encoding.ASCII.GetBytes(messagePtr, message.Length, bufferPtr, buffer.Length); + } + + // Add the null terminator + buffer[bytesWritten] = 0; + + // Write the marker with the null-terminated ANSI message + Pix.PIXSetMarkerOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), 0, (sbyte*)bufferPtr); + } + + // Return the buffer (if an exception is thrown, it's fine to not do so) + ArrayPool.Shared.Return(buffer); + } +} diff --git a/src/ComputeSharp.Pix/Interop/Pix.cs b/src/ComputeSharp.Pix/Interop/Pix.cs new file mode 100644 index 00000000..ca2bb7fc --- /dev/null +++ b/src/ComputeSharp.Pix/Interop/Pix.cs @@ -0,0 +1,44 @@ +using System.Runtime.InteropServices; +using TerraFX.Interop.DirectX; + +namespace ComputeSharp.Interop; + +/// +/// A collection of native bindings for PIX APIs (see ). +/// +internal static unsafe class Pix +{ + /// + /// Starts a PIX event on a target object. + /// + /// C export: typedef void(WINAPI* BeginEventOnCommandList)(ID3D12GraphicsCommandList* commandList, UINT64 color, _In_ PCSTR formatString). + /// + /// + /// The target object. + /// The color to use for the event. + /// The format string to use for the event (in ANSI format, -terminated). + [DllImport("WinPixEventRuntime", ExactSpelling = true, CallingConvention = CallingConvention.Winapi)] + public static extern void PIXBeginEventOnCommandList(ID3D12GraphicsCommandList* commandList, ulong color, sbyte* formatString); + + /// + /// Ends a PIX event on a target object. + /// + /// C export: typedef void(WINAPI* EndEventOnCommandList)(ID3D12GraphicsCommandList* commandList). + /// + /// + /// The target object. + [DllImport("WinPixEventRuntime", ExactSpelling = true, CallingConvention = CallingConvention.Winapi)] + public static extern void PIXEndEventOnCommandList(ID3D12GraphicsCommandList* commandList); + + /// + /// Sets a PIX marker on a target object. + /// + /// C export: typedef void(WINAPI* SetMarkerOnCommandList)(ID3D12GraphicsCommandList* commandList, UINT64 color, _In_ PCSTR formatString). + /// + /// + /// The target object. + /// The color to use for the marker. + /// The format string to use for the marker (in ANSI format, -terminated). + [DllImport("WinPixEventRuntime", ExactSpelling = true, CallingConvention = CallingConvention.Winapi)] + public static extern void PIXSetMarkerOnCommandList(ID3D12GraphicsCommandList* commandList, ulong color, sbyte* formatString); +} diff --git a/src/ComputeSharp/Properties/AssemblyInfo.cs b/src/ComputeSharp/Properties/AssemblyInfo.cs index 80e60132..2ef6928c 100644 --- a/src/ComputeSharp/Properties/AssemblyInfo.cs +++ b/src/ComputeSharp/Properties/AssemblyInfo.cs @@ -3,6 +3,7 @@ [module: SkipLocalsInit] [assembly: InternalsVisibleTo("ComputeSharp.Dynamic")] +[assembly: InternalsVisibleTo("ComputeSharp.Pix")] [assembly: InternalsVisibleTo("ComputeSharp.Uwp")] [assembly: InternalsVisibleTo("ComputeSharp.WinUI")] diff --git a/src/ComputeSharp/Shaders/ComputeContext.cs b/src/ComputeSharp/Shaders/ComputeContext.cs index fc3b0a40..46c03c31 100644 --- a/src/ComputeSharp/Shaders/ComputeContext.cs +++ b/src/ComputeSharp/Shaders/ComputeContext.cs @@ -81,7 +81,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, null); + ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); commandList.D3D12GraphicsCommandList->ClearUnorderedAccessView(d3D12Resource, d3D12GpuDescriptorHandle, d3D12CpuDescriptorHandle, isNormalized); } @@ -101,7 +101,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, null); + ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); commandList.D3D12GraphicsCommandList->FillUnorderedAccessView(d3D12Resource, d3D12GpuDescriptorHandle, d3D12CpuDescriptorHandle, value); } @@ -275,7 +275,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, null); + ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); commandList.D3D12GraphicsCommandList->TransitionBarrier(d3D12Resource, d3D12ResourceStatesBefore, d3D12ResourceStatesAfter); } @@ -345,7 +345,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable /// The input to load. /// A reference to the instance to use. [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static unsafe ref CommandList GetCommandList(in ComputeContext @this, ID3D12PipelineState* pipelineState) + internal static unsafe ref CommandList GetCommandList(in ComputeContext @this, ID3D12PipelineState* pipelineState) { ref ComputeContext context = ref Unsafe.AsRef(in @this); From 2256f875c92bd6bdffc4d5b61a8ef5967cc37d50 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 03:23:14 +0200 Subject: [PATCH 09/38] Add ComputeSharp.Pix packaging project --- ComputeSharp.sln | 3 ++- .../ComputeSharp.Pix.Package.msbuildproj | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj diff --git a/ComputeSharp.sln b/ComputeSharp.sln index cd2a5fe3..ea5f3016 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -34,6 +34,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGet", "NuGet", "{FB17EF84 src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj = src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj = src\ComputeSharp.Dynamic.Package\ComputeSharp.Dynamic.Package.msbuildproj src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj = src\ComputeSharp.Package\ComputeSharp.Package.msbuildproj + src\ComputeSharp.Pix.Package\ComputeSharp.Pix.Package.msbuildproj = src\ComputeSharp.Pix.Package\ComputeSharp.Pix.Package.msbuildproj src\ComputeSharp.Core.Package\icon.png = src\ComputeSharp.Core.Package\icon.png src\ComputeSharp.Core.Package\icon_highres.png = src\ComputeSharp.Core.Package\icon_highres.png EndProjectSection @@ -100,7 +101,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests.AssemblyLevelAttributes", "tests\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj", "{94178D51-0097-4AD2-B3D0-827E40D62F2E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.Pix", "src\ComputeSharp.Pix\ComputeSharp.Pix.csproj", "{14EF12A3-90E6-4683-BD71-9896AF87026B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Pix", "src\ComputeSharp.Pix\ComputeSharp.Pix.csproj", "{14EF12A3-90E6-4683-BD71-9896AF87026B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj new file mode 100644 index 00000000..34ea1bc2 --- /dev/null +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -0,0 +1,27 @@ + + + + net6.0 + + + + ComputeSharp.Pix + ComputeSharp.Pix + An extension library for ComputeSharp to enable PIX support to produce debugging information + + + + + + + + + + PackageVersion=$(PackageVersion) + + + PackageVersion=$(PackageVersion) + + + + \ No newline at end of file From 903c5504c6792efd7d4fb5a37b6b976d968cd9fb Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 12:57:55 +0200 Subject: [PATCH 10/38] Port PIX color helpers from pix3.h file --- src/ComputeSharp.Pix/Interop/Pix.cs | 2 +- src/ComputeSharp.Pix/Interop/Pix.h.cs | 43 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/ComputeSharp.Pix/Interop/Pix.h.cs diff --git a/src/ComputeSharp.Pix/Interop/Pix.cs b/src/ComputeSharp.Pix/Interop/Pix.cs index ca2bb7fc..cc6ee0bf 100644 --- a/src/ComputeSharp.Pix/Interop/Pix.cs +++ b/src/ComputeSharp.Pix/Interop/Pix.cs @@ -6,7 +6,7 @@ namespace ComputeSharp.Interop; /// /// A collection of native bindings for PIX APIs (see ). /// -internal static unsafe class Pix +internal static unsafe partial class Pix { /// /// Starts a PIX event on a target object. diff --git a/src/ComputeSharp.Pix/Interop/Pix.h.cs b/src/ComputeSharp.Pix/Interop/Pix.h.cs new file mode 100644 index 00000000..3cca15bd --- /dev/null +++ b/src/ComputeSharp.Pix/Interop/Pix.h.cs @@ -0,0 +1,43 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: pix3.h + * Content: PIX include file + * + ****************************************************************************/ + +// The following methods in this file have been ported from the +// pix3.h file in the winpixeventruntime.1.0.220124001 package. + +using System.Runtime.CompilerServices; + +namespace ComputeSharp.Interop; + +/// +partial class Pix +{ + /// + /// Gets a value representing a color for a PIX event. + /// + /// The red channel value for the color. + /// The green channel value for the color. + /// The blue channel value for the color. + /// A value representing a color for a PIX event. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint PIX_COLOR(byte r, byte g, byte b) + { + return 0xFF000000 | ((uint)r << 16) | ((uint)g << 8) | b; + } + + /// + /// Gets a value representing an indexed color for a PIX event. + /// + /// The index of the event to get the color for. + /// A value representing an indexed color for a PIX event. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint PIX_COLOR_INDEX(byte i) + { + return i; + } +} From 279c464dc2e59c361bcb854f337d3af7530c75c8 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 13:01:43 +0200 Subject: [PATCH 11/38] Remove unnecessary modifiers for partial types --- .../AutoConstructorGenerator.cs | 2 +- .../SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs | 2 +- src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs | 2 +- .../__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs | 2 +- .../Shaders/Translation/ShaderCompiler.LibraryLoading.cs | 2 +- .../SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs | 2 +- src/ComputeSharp/Core/Dispatch/ThreadIds.Normalized.cs | 2 +- .../Graphics/Extensions/GraphicsDeviceExtensions.Resources.cs | 2 +- .../Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs | 2 +- src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs | 2 +- src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs | 2 +- .../Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs | 2 +- src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ComputeSharp.Core.SourceGenerators/AutoConstructorGenerator.cs b/src/ComputeSharp.Core.SourceGenerators/AutoConstructorGenerator.cs index 111cf414..b7584b81 100644 --- a/src/ComputeSharp.Core.SourceGenerators/AutoConstructorGenerator.cs +++ b/src/ComputeSharp.Core.SourceGenerators/AutoConstructorGenerator.cs @@ -16,7 +16,7 @@ namespace ComputeSharp.Core.SourceGenerators; /// A source generator creating constructors for types annotated with . /// [Generator(LanguageNames.CSharp)] -public sealed partial class AutoConstructorGenerator : IIncrementalGenerator +public sealed class AutoConstructorGenerator : IIncrementalGenerator { /// public void Initialize(IncrementalGeneratorInitializationContext context) diff --git a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs index d722dd00..8e6bc2eb 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs @@ -7,7 +7,7 @@ using static ComputeSharp.D2D1.SourceGenerators.Diagnostics.DiagnosticDescriptor namespace ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters; /// -internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter +partial class HlslSourceRewriter : CSharpSyntaxRewriter { /// public override SyntaxNode? VisitAnonymousObjectCreationExpression(AnonymousObjectCreationExpressionSyntax node) diff --git a/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs b/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs index a2163e54..36fd8f77 100644 --- a/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs +++ b/src/ComputeSharp.D2D1/Helpers/ThrowHelper.cs @@ -6,7 +6,7 @@ namespace ComputeSharp.D2D1.Helpers; /// /// Helper methods to efficiently throw exceptions. /// -internal static partial class ThrowHelper +internal static class ThrowHelper { /// /// Throws a new . diff --git a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs index dd8e84ae..5c8031db 100644 --- a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs +++ b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace ComputeSharp.__Internals; /// -public sealed partial class ShaderMethodSourceAttribute : Attribute +partial class ShaderMethodSourceAttribute : Attribute { /// /// Appends the mapped source code for the current method. diff --git a/src/ComputeSharp.Dynamic/Shaders/Translation/ShaderCompiler.LibraryLoading.cs b/src/ComputeSharp.Dynamic/Shaders/Translation/ShaderCompiler.LibraryLoading.cs index bfb872b0..437ae750 100644 --- a/src/ComputeSharp.Dynamic/Shaders/Translation/ShaderCompiler.LibraryLoading.cs +++ b/src/ComputeSharp.Dynamic/Shaders/Translation/ShaderCompiler.LibraryLoading.cs @@ -9,7 +9,7 @@ using TerraFX.Interop.Windows; namespace ComputeSharp.Shaders.Translation; /// -internal sealed unsafe partial class ShaderCompiler +unsafe partial class ShaderCompiler { /// /// Initializes the DLL resolvers for the dxcompiler.dll and dxil.dll libraries. diff --git a/src/ComputeSharp.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs b/src/ComputeSharp.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs index a22fb426..93b62925 100644 --- a/src/ComputeSharp.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs +++ b/src/ComputeSharp.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.Diagnostics.cs @@ -7,7 +7,7 @@ using static ComputeSharp.SourceGenerators.Diagnostics.DiagnosticDescriptors; namespace ComputeSharp.SourceGenerators.SyntaxRewriters; /// -internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter +partial class HlslSourceRewriter : CSharpSyntaxRewriter { /// public override SyntaxNode? VisitAnonymousObjectCreationExpression(AnonymousObjectCreationExpressionSyntax node) diff --git a/src/ComputeSharp/Core/Dispatch/ThreadIds.Normalized.cs b/src/ComputeSharp/Core/Dispatch/ThreadIds.Normalized.cs index 602258e3..75023d16 100644 --- a/src/ComputeSharp/Core/Dispatch/ThreadIds.Normalized.cs +++ b/src/ComputeSharp/Core/Dispatch/ThreadIds.Normalized.cs @@ -3,7 +3,7 @@ namespace ComputeSharp; /// -public static partial class ThreadIds +partial class ThreadIds { /// /// A that indicates the normalized ids of a given GPU thread running a compute shader. diff --git a/src/ComputeSharp/Graphics/Extensions/GraphicsDeviceExtensions.Resources.cs b/src/ComputeSharp/Graphics/Extensions/GraphicsDeviceExtensions.Resources.cs index e1c65de6..a434df13 100644 --- a/src/ComputeSharp/Graphics/Extensions/GraphicsDeviceExtensions.Resources.cs +++ b/src/ComputeSharp/Graphics/Extensions/GraphicsDeviceExtensions.Resources.cs @@ -7,7 +7,7 @@ using ComputeSharp.Resources; namespace ComputeSharp; /// -public static partial class GraphicsDeviceExtensions +partial class GraphicsDeviceExtensions { /// /// Allocates a new constant buffer with the specified parameters. diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs index ee8772d1..76c15576 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs +++ b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs @@ -21,7 +21,7 @@ using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.In namespace ComputeSharp.Graphics.Extensions; /// -internal static unsafe partial class IWICStreamExtensions +unsafe partial class IWICStreamExtensions { /// /// Initializes an input wrapping a given instance. diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs index 795cc5d2..019ef47d 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Enumerator.cs @@ -15,7 +15,7 @@ using static TerraFX.Interop.DirectX.DXGI_GPU_PREFERENCE; namespace ComputeSharp.Graphics.Helpers; /// -internal static partial class DeviceHelper +partial class DeviceHelper { /// /// A custom query type that iterates through devices matching a given predicate. diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs index 95b02175..8445a801 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.Factory.cs @@ -6,7 +6,7 @@ using TerraFX.Interop.Windows; namespace ComputeSharp.Graphics.Helpers; /// -internal static partial class DeviceHelper +partial class DeviceHelper { /// /// The local cache of instances that are currently usable. diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs index d8c521c4..029bbf27 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs @@ -15,7 +15,7 @@ using Enum = ComputeSharp.NetStandard.System.Enum; namespace ComputeSharp.Graphics.Helpers; /// -internal static partial class DeviceHelper +partial class DeviceHelper { /// /// A shared used from to create messages. diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs index c85dcb01..cb693974 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs @@ -15,7 +15,7 @@ using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.In namespace ComputeSharp.Graphics.Helpers; /// -internal static partial class DeviceHelper +partial class DeviceHelper { /// /// The creation flags for instances. From a4763426fe208ae02a9134578da22f3a071eb962 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 18 Jun 2022 13:11:35 +0200 Subject: [PATCH 12/38] Complete set of PIX extensions for ComputeContext --- .../ComputeContextExtensions.cs | 74 ++++++++++++++++++- .../ID3D12GraphicsCommandListExtensions.cs | 41 +++++++++- 2 files changed, 107 insertions(+), 8 deletions(-) diff --git a/src/ComputeSharp.Pix/ComputeContextExtensions.cs b/src/ComputeSharp.Pix/ComputeContextExtensions.cs index 20b5efbf..bafaa338 100644 --- a/src/ComputeSharp.Pix/ComputeContextExtensions.cs +++ b/src/ComputeSharp.Pix/ComputeContextExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System.Drawing; using ComputeSharp.Graphics.Commands; using ComputeSharp.Interop; @@ -9,6 +9,37 @@ namespace ComputeSharp; /// public static class ComputeContextExtensions { + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The color to use for the event (the alpha channel will be ignored). + /// The message to use for the event. + public static unsafe void BeginEvent(this in ComputeContext context, Color color, string message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + int argb = color.ToArgb(); + uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); + + commandList.D3D12GraphicsCommandList->BeginEvent(pixColor, message); + } + + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The index to identify the group this event belongs to (PIX will choose a color to represent all entries in the group). + /// The message to use for the event. + public static unsafe void BeginEvent(this in ComputeContext context, byte index, string message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + uint pixColor = Pix.PIX_COLOR_INDEX(index); + + commandList.D3D12GraphicsCommandList->BeginEvent(pixColor, message); + } + /// /// Starts a PIX event on a target object. /// @@ -16,7 +47,9 @@ public static class ComputeContextExtensions /// The message to use for the event. public static unsafe void BeginEvent(this in ComputeContext context, string message) { - throw new NotImplementedException(); + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + commandList.D3D12GraphicsCommandList->BeginEvent(0, message); } /// @@ -25,7 +58,40 @@ public static class ComputeContextExtensions /// The to use to end the PIX event. public static unsafe void EndEvent(this in ComputeContext context) { - throw new NotImplementedException(); + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + Pix.PIXEndEventOnCommandList(commandList.D3D12GraphicsCommandList); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The color to use for the log (the alpha channel will be ignored). + /// The message to use for the marker. + public static unsafe void Log(this in ComputeContext context, Color color, string message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + int argb = color.ToArgb(); + uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); + + commandList.D3D12GraphicsCommandList->SetPixMarker(pixColor, message); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The index to identify the group this log belongs to (PIX will choose a color to represent all entries in the group). + /// The message to use for the marker. + public static unsafe void Log(this in ComputeContext context, byte index, string message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + uint pixColor = Pix.PIX_COLOR_INDEX(index); + + commandList.D3D12GraphicsCommandList->SetPixMarker(pixColor, message); } /// @@ -37,6 +103,6 @@ public static class ComputeContextExtensions { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); - commandList.D3D12GraphicsCommandList->SetPixMarker(message); + commandList.D3D12GraphicsCommandList->SetPixMarker(0, message); } } diff --git a/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs index a423bd61..971bca2a 100644 --- a/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs +++ b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs @@ -11,11 +11,12 @@ namespace ComputeSharp.Interop; internal static class ID3D12GraphicsCommandListExtensions { /// - /// Sets a PIX marker on a target object. + /// Begins a PIX event on a target object. /// /// The target object. - /// The message to use for the marker. - public static unsafe void SetPixMarker(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, string message) + /// The color to use for the event. + /// The message to use for the event. + public static unsafe void BeginEvent(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, uint color, string message) { // Rent a byte buffer with space for the null-terminator too int maxByteLength = Encoding.ASCII.GetMaxByteCount(message.Length) + 1; @@ -34,7 +35,39 @@ internal static class ID3D12GraphicsCommandListExtensions buffer[bytesWritten] = 0; // Write the marker with the null-terminated ANSI message - Pix.PIXSetMarkerOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), 0, (sbyte*)bufferPtr); + Pix.PIXBeginEventOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), color, (sbyte*)bufferPtr); + } + + // Return the buffer (if an exception is thrown, it's fine to not do so) + ArrayPool.Shared.Return(buffer); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The target object. + /// The color to use for the marker. + /// The message to use for the marker. + public static unsafe void SetPixMarker(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, uint color, string message) + { + // Rent a byte buffer with space for the null-terminator too + int maxByteLength = Encoding.ASCII.GetMaxByteCount(message.Length) + 1; + byte[] buffer = ArrayPool.Shared.Rent(maxByteLength); + int bytesWritten; + + fixed (byte* bufferPtr = buffer) + { + // Transcode from unicode to ASCII + fixed (char* messagePtr = message) + { + bytesWritten = Encoding.ASCII.GetBytes(messagePtr, message.Length, bufferPtr, buffer.Length); + } + + // Add the null terminator + buffer[bytesWritten] = 0; + + // Write the marker with the null-terminated ANSI message + Pix.PIXSetMarkerOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), color, (sbyte*)bufferPtr); } // Return the buffer (if an exception is thrown, it's fine to not do so) From 800bd4b9d16a3a004fdb9a09759f575fac4e32b6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 01:44:41 +0200 Subject: [PATCH 13/38] Build ComputeSharp.Pix in CI pipeline --- .github/workflows/dotnet.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 077e3de4..2b0e5901 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -79,6 +79,9 @@ jobs: - name: Build ComputeSharp.D2D1 package run: dotnet build src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj -c Release shell: cmd + - name: Build ComputeSharp.Pix package + run: dotnet build src\ComputeSharp.Pix.Package\ComputeSharp.Pix.Package.msbuildproj -c Release + shell: cmd - name: Build ComputeSharp.Uwp package run: msbuild src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj -t:restore,build,pack /p:Configuration=Release shell: cmd From f575d94d1f14d8b441aabca4c9308ba8ac6814ee Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 01:54:44 +0200 Subject: [PATCH 14/38] Include PIX license file in NuGet package --- .../ComputeSharp.Pix.Package.msbuildproj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index 34ea1bc2..e8e2dbfe 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -14,6 +14,11 @@ + + + + + From a63d340b786a91f62344b73b5375dfc24d0c1adf Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 02:18:06 +0200 Subject: [PATCH 15/38] Add custom .targets to extract the PIX native libraries --- .../ComputeSharp.Pix.Package.msbuildproj | 7 +++ src/ComputeSharp.Pix/ComputeSharp.Pix.csproj | 19 ++++--- src/ComputeSharp.Pix/ComputeSharp.Pix.targets | 51 +++++++++++++++++++ 3 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 src/ComputeSharp.Pix/ComputeSharp.Pix.targets diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index e8e2dbfe..0af145ef 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -29,4 +29,11 @@ + + + + + + + \ No newline at end of file diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj index d0624211..1ad34cdb 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj @@ -40,27 +40,30 @@ + + winpixeventruntime.1.0.220124001 + + PackFolder="$(WinPixEventRuntimeVersion)\x64" /> + PackFolder="$(WinPixEventRuntimeVersion)\x64" /> + PackFolder="$(WinPixEventRuntimeVersion)\arm64" /> + PackFolder="$(WinPixEventRuntimeVersion)\arm64" /> diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.targets b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets new file mode 100644 index 00000000..c31cce2a --- /dev/null +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets @@ -0,0 +1,51 @@ + + + + + + + + winpixeventruntime.1.0.220124001 + + + false + true + + + false + true + + + + + + + + + + + + + + + + + + + + + + + From 09c08e90b29600c4eacc2cc48b5dc85a6c75f276 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 02:49:49 +0200 Subject: [PATCH 16/38] Fix ComputeSharp.Core packing within ComputeSharp.Pix --- .../ComputeSharp.Pix.Package.msbuildproj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index 0af145ef..c5cddb1c 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -27,6 +27,14 @@ PackageVersion=$(PackageVersion) + + + + PackageVersion=$(PackageVersion) + + + PackageVersion=$(PackageVersion) + From e05ce012c66e3917df8b56612f1c714e245e1cd5 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 02:52:59 +0200 Subject: [PATCH 17/38] Pack .targets for ComputeSharp.Pix on .NET 6 too --- .../ComputeSharp.Pix.Package.msbuildproj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index c5cddb1c..e4be0816 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -39,9 +39,11 @@ - + + + \ No newline at end of file From 31feb16b0948c6513f6c7b3f38ef203a02bf0e27 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 03:08:38 +0200 Subject: [PATCH 18/38] Fix packing of custom .targets files for all packages --- .../ComputeSharp.Core.Package.msbuildproj | 4 ++-- .../ComputeSharp.D2D1.Package.msbuildproj | 4 ++-- src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj | 4 ++-- .../ComputeSharp.Pix.Package.msbuildproj | 6 ++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj b/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj index 8cc7e0b0..3c9f5db5 100644 --- a/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj +++ b/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj @@ -22,8 +22,8 @@ - - + + \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj index 3f073749..c489e121 100644 --- a/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj +++ b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj @@ -28,8 +28,8 @@ - - + + \ No newline at end of file diff --git a/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj index dc84fbb6..0d862236 100644 --- a/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj +++ b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj @@ -28,8 +28,8 @@ - - + + \ No newline at end of file diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index e4be0816..d8c12839 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -40,10 +40,8 @@ - - - - + + \ No newline at end of file From 40cd02b4e4b25fb75c865a4e52ec48559c37829e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 12:47:56 +0200 Subject: [PATCH 19/38] Fix .targets files for multiple Roslyn versions --- src/ComputeSharp.Core/ComputeSharp.Core.targets | 1 + src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets | 1 + src/ComputeSharp/ComputeSharp.targets | 1 + 3 files changed, 3 insertions(+) diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.targets b/src/ComputeSharp.Core/ComputeSharp.Core.targets index fce96d6e..a6e129ef 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.targets +++ b/src/ComputeSharp.Core/ComputeSharp.Core.targets @@ -25,6 +25,7 @@ @(CurrentCompilerAssemblyIdentity->'%(Version)') + $(CurrentCompilerVersion.Split(';')[0]) true diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets index 802efd95..03b7aa52 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets @@ -25,6 +25,7 @@ @(CurrentCompilerAssemblyIdentity->'%(Version)') + $(CurrentCompilerVersion.Split(';')[0]) true diff --git a/src/ComputeSharp/ComputeSharp.targets b/src/ComputeSharp/ComputeSharp.targets index 971097ad..8e20554b 100644 --- a/src/ComputeSharp/ComputeSharp.targets +++ b/src/ComputeSharp/ComputeSharp.targets @@ -25,6 +25,7 @@ @(CurrentCompilerAssemblyIdentity->'%(Version)') + $(CurrentCompilerVersion.Split(';')[0]) true From cb2999674945f0f89c5cc0560d8688b407635392 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 13:27:08 +0200 Subject: [PATCH 20/38] Update license information and enable acceptance on install --- LICENSE | 2 +- ThirdPartyNotices.txt | 89 +++++++++++++++++++ .../ComputeSharp.Pix.Package.msbuildproj | 4 + src/ComputeSharp.Pix/LICENSE.txt | 30 ++++++- 4 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 ThirdPartyNotices.txt diff --git a/LICENSE b/LICENSE index 948574b9..c13364da 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Sergio Pedri +Copyright (c) 2022 Sergio Pedri Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/ThirdPartyNotices.txt b/ThirdPartyNotices.txt new file mode 100644 index 00000000..086cfccc --- /dev/null +++ b/ThirdPartyNotices.txt @@ -0,0 +1,89 @@ +THIRD-PARTY SOFTWARE NOTICES AND INFORMATION +Do Not Translate or Localize + +This project incorporates components from the projects listed below. + +1. PIX on Windows (https://devblogs.microsoft.com/pix/winpixeventruntime/), included in ComputeSharp.Pix. + +%% PIX on Windows NOTICES AND INFORMATION BEGIN HERE +========================================= +MICROSOFT SOFTWARE LICENSE TERMS + +PIX EVENT RUNTIME FOR WINDOWS + +IF YOU LIVE IN (OR ARE A BUSINESS WITH A PRINCIPAL PLACE OF BUSINESS IN) THE UNITED STATES, PLEASE READ THE “BINDING ARBITRATION AND CLASS ACTION WAIVER” SECTION BELOW. IT AFFECTS HOW DISPUTES ARE RESOLVED. + +These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They apply to the software named above and any Microsoft services or software updates (except to the extent such services or updates are accompanied by new or additional terms, in which case those different terms apply prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. + +1. INSTALLATION AND USE RIGHTS. + a. General. You may install and use any number of copies of the software to design, develop and test your Microsoft Windows programs. + b. Third Party Software. The software may include third party applications that are licensed to you under this agreement or under their own terms. License terms, notices, and acknowledgements, if any, for the third party applications may be accessible online at http://aka.ms/thirdpartynotices or in an accompanying notices file. Even if such applications are governed by other agreements, the disclaimer, limitations on, and exclusions of damages below also apply to the extent allowed by applicable law. + +2. DISTRIBUTABLE CODE. + a. Distributable Code. The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in programs you develop if you comply with the terms below. + (i) Right to Use and Distribute. + * You may copy and distribute the object code form of the software. + * Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. + (ii) Distribution Requirements. For any Distributable Code you distribute, you must + * add significant primary functionality to it in your programs; + * require distributors and external end users to agree to terms that protect it at least as much as this agreement; + * display your valid copyright notice on your programs; and + * indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. + (iii) Distribution Restrictions. You may not + * alter any copyright, trademark or patent notice in the Distributable Code; + * use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; + * distribute Distributable Code to run on a platform other than a Windows platform; + * include Distributable Code in malicious, deceptive or unlawful programs; or + * modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that + * the code be disclosed or distributed in source code form; or + * others have the right to modify it. + +3. SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to): + a. work around any technical limitations in the software that only allow you to use it in certain ways; + b. reverse engineer, decompile or disassemble the software; + c. remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; + d. use the software in any way that is against the law or to create or propagate malware; or + e. share, publish, distribute, or lend the software, provide the software as a stand-alone hosted solution for others to use, or transfer the software or this agreement to any third party. + +4. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit http://aka.ms/exporting. + +5. SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind. + +6. BINDING ARBITRATION AND CLASS ACTION WAIVER. This Section applies if you live in (or, if a business, your principal place of business is in) the United States. If you and Microsoft have a dispute, you and Microsoft agree to try for 60 days to resolve it informally. If you and Microsoft can’t, you and Microsoft agree to binding individual arbitration before the American Arbitration Association under the Federal Arbitration Act (“FAA”), and not to sue in court in front of a judge or jury. Instead, a neutral arbitrator will decide. Class action lawsuits, class-wide arbitrations, private attorney-general actions, and any other proceeding where someone acts in a representative capacity are not allowed; nor is combining individual proceedings without the consent of all parties. The complete Arbitration Agreement contains more terms and is at http://aka.ms/arb-agreement-1. You and Microsoft agree to these terms. + +7. ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements, updates, or third-party applications, is the entire agreement for the software. + +8. APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United States or Canada, the laws of the state or province where you live (or, if a business, where your principal place of business is located) govern the interpretation of this agreement, claims for its breach, and all other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of laws principles, except that the FAA governs everything related to arbitration. If you acquired the software in any other country, its laws apply, except that the FAA governs everything related to arbitration. If U.S. federal jurisdiction exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County, Washington for all disputes heard in court (excluding arbitration). If not, you and Microsoft consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington for all disputes heard in court (excluding arbitration). + +9. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state, province, or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state, province, or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you: + a. Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights. + b. Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software. + c. Germany and Austria. + (i) Warranty. The properly licensed software will perform substantially as described in any Microsoft materials that accompany the software. However, Microsoft gives no contractual guarantee in relation to the licensed software. + (ii) Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as, in case of death or personal or physical injury, Microsoft is liable according to the statutory law. + Subject to the foregoing clause (ii), Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence. + +10. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. + +11. LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, warranty, guarantee, or condition; strict liability, negligence, or other tort; or any other claim; in each case to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state, province, or country may not allow the exclusion or limitation of incidental, consequential, or other damages. + + +[Please note: As this software is distributed in Canada, some of the clauses in this agreement are provided below in French. + +Remarque: Ce logiciel étant distribué au Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français. + +EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues. + +LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. + +Cette limitation concerne: + * tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers; et + * les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur. + +Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. + +EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.] +========================================= +END OF PIX on Windows NOTICES AND INFORMATION \ No newline at end of file diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index d8c12839..2d5da297 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -18,6 +18,10 @@ + + + LICENSE.txt + diff --git a/src/ComputeSharp.Pix/LICENSE.txt b/src/ComputeSharp.Pix/LICENSE.txt index 7093c406..548ece17 100644 --- a/src/ComputeSharp.Pix/LICENSE.txt +++ b/src/ComputeSharp.Pix/LICENSE.txt @@ -1,3 +1,29 @@ +MIT License + +Copyright (c) 2022 Sergio Pedri + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +This project incorporates components from PIX on Windows (https://devblogs.microsoft.com/pix/winpixeventruntime/). + +%% PIX on Windows NOTICES AND INFORMATION BEGIN HERE +========================================= MICROSOFT SOFTWARE LICENSE TERMS PIX EVENT RUNTIME FOR WINDOWS @@ -75,4 +101,6 @@ Cette limitation concerne: Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. -EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.] \ No newline at end of file +EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.] +========================================= +END OF PIX on Windows NOTICES AND INFORMATION \ No newline at end of file From a83070c9ad710145718a280b2444eb7e125d80b0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 14:08:14 +0200 Subject: [PATCH 21/38] Enable targets to check Roslyn 4.2 on all packages --- .../ComputeSharp.Core.Package.msbuildproj | 6 +++--- .../ComputeSharp.D2D1.Package.msbuildproj | 6 +++--- src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj | 6 +++--- .../ComputeSharp.Pix.Package.msbuildproj | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj b/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj index 3c9f5db5..909f3c38 100644 --- a/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj +++ b/src/ComputeSharp.Core.Package/ComputeSharp.Core.Package.msbuildproj @@ -21,9 +21,9 @@ - - - + + + \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj index c489e121..3b2b49c7 100644 --- a/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj +++ b/src/ComputeSharp.D2D1.Package/ComputeSharp.D2D1.Package.msbuildproj @@ -27,9 +27,9 @@ - - - + + + \ No newline at end of file diff --git a/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj index 0d862236..d5b55295 100644 --- a/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj +++ b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj @@ -27,9 +27,9 @@ - - - + + + \ No newline at end of file diff --git a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj index 2d5da297..d809f0c5 100644 --- a/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj +++ b/src/ComputeSharp.Pix.Package/ComputeSharp.Pix.Package.msbuildproj @@ -43,7 +43,7 @@ - + From 65fdaa8feec16665577bca500bdcedbe4f659d9a Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 14:36:03 +0200 Subject: [PATCH 22/38] Ensure PIX target is added to MSBuild graph, bug fixes --- src/ComputeSharp.Pix/ComputeSharp.Pix.targets | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.targets b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets index c31cce2a..73e4e365 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.targets +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets @@ -1,7 +1,9 @@ - + @@ -9,7 +11,7 @@ false - true + true false From e6acc57384856b3b5198e4bae546f45446be8da9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 14:39:14 +0200 Subject: [PATCH 23/38] Add ComputeSharp.Pix package to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e574a8da..5fcc1202 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ The sample app is available in the Microsoft Store, showcasing several pixel sha | ------ | ------ | ------ | | **ComputeSharp** | The main library, with compiled shaders support | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.svg)](https://www.nuget.org/packages/ComputeSharp/) | | **ComputeSharp.Dynamic** | An extension for **ComputeSharp**, enabling dynamic shader compilation at runtime and shader metaprogramming | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.Dynamic.svg)](https://www.nuget.org/packages/ComputeSharp.Dynamic/) | +| **ComputeSharp.Pix** | An extension library for **ComputeSharp**, enabling PIX support to produce debugging information | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.Pix.svg)](https://www.nuget.org/packages/ComputeSharp.Pix/) | | **ComputeSharp.Uwp** | A UWP library (targeting .NET Standard 2.0) with controls to render DX12 shaders powered by **ComputeSharp** | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.Uwp.svg)](https://www.nuget.org/packages/ComputeSharp.Uwp/) | | **ComputeSharp.WinUI** | A WinUI 3 library (targeting .NET 6) with controls to render DX12 shaders powered by **ComputeSharp** | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.WinUI.svg)](https://www.nuget.org/packages/ComputeSharp.WinUI/) | | **ComputeSharp.D2D1** | A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them | [![NuGet](https://img.shields.io/nuget/vpre/ComputeSharp.D2D1.svg)](https://www.nuget.org/packages/ComputeSharp.D2D1/) | From 614493268556df4cd8cca16551d60b152f504e54 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 15:29:21 +0200 Subject: [PATCH 24/38] Add USE_PIX conditional attributes to PIX APIs --- src/ComputeSharp.Pix/ComputeContextExtensions.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ComputeSharp.Pix/ComputeContextExtensions.cs b/src/ComputeSharp.Pix/ComputeContextExtensions.cs index bafaa338..804009f8 100644 --- a/src/ComputeSharp.Pix/ComputeContextExtensions.cs +++ b/src/ComputeSharp.Pix/ComputeContextExtensions.cs @@ -1,4 +1,5 @@ -using System.Drawing; +using System.Diagnostics; +using System.Drawing; using ComputeSharp.Graphics.Commands; using ComputeSharp.Interop; @@ -15,6 +16,7 @@ public static class ComputeContextExtensions /// The to use to start the PIX event. /// The color to use for the event (the alpha channel will be ignored). /// The message to use for the event. + [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, Color color, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -31,6 +33,7 @@ public static class ComputeContextExtensions /// The to use to start the PIX event. /// The index to identify the group this event belongs to (PIX will choose a color to represent all entries in the group). /// The message to use for the event. + [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, byte index, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -45,6 +48,7 @@ public static class ComputeContextExtensions /// /// The to use to start the PIX event. /// The message to use for the event. + [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -56,6 +60,7 @@ public static class ComputeContextExtensions /// Ends a PIX event on a target object. /// /// The to use to end the PIX event. + [Conditional("USE_PIX")] public static unsafe void EndEvent(this in ComputeContext context) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -69,6 +74,7 @@ public static class ComputeContextExtensions /// The to use to insert the PIX marker. /// The color to use for the log (the alpha channel will be ignored). /// The message to use for the marker. + [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, Color color, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -85,6 +91,7 @@ public static class ComputeContextExtensions /// The to use to insert the PIX marker. /// The index to identify the group this log belongs to (PIX will choose a color to represent all entries in the group). /// The message to use for the marker. + [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, byte index, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); @@ -99,6 +106,7 @@ public static class ComputeContextExtensions /// /// The to use to insert the PIX marker. /// The message to use for the marker. + [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, string message) { ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); From 9d7098002ca00053a3c2fea36a7683ffcd830860 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 15:37:40 +0200 Subject: [PATCH 25/38] Add PIX overloads taking a ReadOnlySpan message --- .../ComputeContextExtensions.cs | 167 +++++++++++++++++- .../ID3D12GraphicsCommandListExtensions.cs | 31 +++- 2 files changed, 196 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Pix/ComputeContextExtensions.cs b/src/ComputeSharp.Pix/ComputeContextExtensions.cs index 804009f8..16de0c2a 100644 --- a/src/ComputeSharp.Pix/ComputeContextExtensions.cs +++ b/src/ComputeSharp.Pix/ComputeContextExtensions.cs @@ -1,4 +1,5 @@ -using System.Diagnostics; +using System; +using System.Diagnostics; using System.Drawing; using ComputeSharp.Graphics.Commands; using ComputeSharp.Interop; @@ -56,6 +57,88 @@ public static class ComputeContextExtensions commandList.D3D12GraphicsCommandList->BeginEvent(0, message); } + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The color to use for the event (the alpha channel will be ignored). + /// The message to use for the event (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void BeginEventUnsafe(this in ComputeContext context, Color color, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + int argb = color.ToArgb(); + uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); + + commandList.D3D12GraphicsCommandList->BeginEventUnsafe(pixColor, message); + } + + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The index to identify the group this event belongs to (PIX will choose a color to represent all entries in the group). + /// The message to use for the event (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void BeginEventUnsafe(this in ComputeContext context, byte index, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + uint pixColor = Pix.PIX_COLOR_INDEX(index); + + commandList.D3D12GraphicsCommandList->BeginEventUnsafe(pixColor, message); + } + + /// + /// Starts a PIX event on a target object. + /// + /// The to use to start the PIX event. + /// The message to use for the event (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void BeginEventUnsafe(this in ComputeContext context, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + commandList.D3D12GraphicsCommandList->BeginEventUnsafe(0, message); + } + /// /// Ends a PIX event on a target object. /// @@ -113,4 +196,86 @@ public static class ComputeContextExtensions commandList.D3D12GraphicsCommandList->SetPixMarker(0, message); } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The color to use for the log (the alpha channel will be ignored). + /// The message to use for the marker (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void LogUnsafe(this in ComputeContext context, Color color, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + int argb = color.ToArgb(); + uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); + + commandList.D3D12GraphicsCommandList->SetPixMarkerUnsafe(pixColor, message); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The index to identify the group this log belongs to (PIX will choose a color to represent all entries in the group). + /// The message to use for the marker (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void LogUnsafe(this in ComputeContext context, byte index, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + uint pixColor = Pix.PIX_COLOR_INDEX(index); + + commandList.D3D12GraphicsCommandList->SetPixMarkerUnsafe(pixColor, message); + } + + /// + /// Sets a PIX marker on a target object. + /// + /// The to use to insert the PIX marker. + /// The message to use for the marker (it's assumed to be a -terminated ANSI characters sequence). + /// + /// + /// The parameter is not checked to ensure it has a -terminator. This allows callers + /// to pass an UTF8 string literal containing only ASCII characters (as the byte contents would be a valid ANSI sequence in that case). + /// The compiler will automatically insert a terminator right past the end of the returned when doing so. + /// + /// + /// This method offers greatly reduced overhead compared to the overlods taking a , as there is no need to create the + /// instance nor to execute the transcoding at runtime. The behavior when the input is invalid though is undefined. + /// Callers must take extra care to ensure the input message is in fact -terminated when invoking this API. + /// + /// + [Conditional("USE_PIX")] + public static unsafe void LogUnsafe(this in ComputeContext context, ReadOnlySpan message) + { + ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + + commandList.D3D12GraphicsCommandList->SetPixMarkerUnsafe(0, message); + } } diff --git a/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs index 971bca2a..816128a2 100644 --- a/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs +++ b/src/ComputeSharp.Pix/Interop/ID3D12GraphicsCommandListExtensions.cs @@ -1,4 +1,5 @@ -using System.Buffers; +using System; +using System.Buffers; using System.Runtime.CompilerServices; using System.Text; using TerraFX.Interop.DirectX; @@ -42,6 +43,20 @@ internal static class ID3D12GraphicsCommandListExtensions ArrayPool.Shared.Return(buffer); } + /// + /// Begins a PIX event on a target object. + /// + /// The target object. + /// The color to use for the event. + /// The message to use for the event (it's assumed to be a -terminated ANSI characters sequence). + public static unsafe void BeginEventUnsafe(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, uint color, ReadOnlySpan message) + { + fixed (byte* messagePtr = message) + { + Pix.PIXBeginEventOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), color, (sbyte*)messagePtr); + } + } + /// /// Sets a PIX marker on a target object. /// @@ -73,4 +88,18 @@ internal static class ID3D12GraphicsCommandListExtensions // Return the buffer (if an exception is thrown, it's fine to not do so) ArrayPool.Shared.Return(buffer); } + + /// + /// Sets a PIX marker on a target object. + /// + /// The target object. + /// The color to use for the marker. + /// The message to use for the event (it's assumed to be a -terminated ANSI characters sequence). + public static unsafe void SetPixMarkerUnsafe(this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, uint color, ReadOnlySpan message) + { + fixed (byte* messagePtr = message) + { + Pix.PIXSetMarkerOnCommandList((ID3D12GraphicsCommandList*)Unsafe.AsPointer(ref d3D12GraphicsCommandList), color, (sbyte*)messagePtr); + } + } } From 7878a96f693f2171eafa7c6f2cf10fb7304f5fc7 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 16:34:53 +0200 Subject: [PATCH 26/38] Enable breadcrumb context tracking with DRED --- .../Helpers/DeviceHelper.IDXGIFactory6.cs | 5 ++-- ...3D12DeviceRemovedExtendedDataSettings1.cs} | 24 +++++++++---------- .../TerraFX.Interop.Windows.projitems | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) rename src/TerraFX.Interop.Windows/DirectX/um/d3d12/{ID3D12DeviceRemovedExtendedDataSettings.cs => ID3D12DeviceRemovedExtendedDataSettings1.cs} (63%) diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs index cb693974..67c91793 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs @@ -90,14 +90,15 @@ partial class DeviceHelper /// private static unsafe void EnableDeviceRemovedExtendedDataConfiguration() { - using ComPtr d3D12DeviceRemovedExtendedDataSettings = default; + using ComPtr d3D12DeviceRemovedExtendedDataSettings = default; DirectX.D3D12GetDebugInterface( - riid: Windows.__uuidof(), + riid: Windows.__uuidof(), ppvDebug: d3D12DeviceRemovedExtendedDataSettings.GetVoidAddressOf()).Assert(); // Enable the auto-breadcrumbs and page faults reporting d3D12DeviceRemovedExtendedDataSettings.Get()->SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); + d3D12DeviceRemovedExtendedDataSettings.Get()->SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); d3D12DeviceRemovedExtendedDataSettings.Get()->SetPageFaultEnablement(D3D12_DRED_ENABLEMENT.D3D12_DRED_ENABLEMENT_FORCED_ON); } diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs similarity index 63% rename from src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs rename to src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs index f8378e6e..4843bac0 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedDataSettings1.cs @@ -10,10 +10,10 @@ using TerraFX.Interop.Windows; namespace TerraFX.Interop.DirectX { - [Guid("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63")] - [NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings : IUnknown")] - [NativeInheritance("IUnknown")] - internal unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings + [Guid("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B")] + [NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings1 : ID3D12DeviceRemovedExtendedDataSettings")] + [NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings")] + internal unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings1 { public void** lpVtbl; @@ -21,42 +21,42 @@ namespace TerraFX.Interop.DirectX [VtblIndex(0)] public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), riid, ppvObject); + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), riid, ppvObject); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] public uint AddRef() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] public uint Release() { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this)); + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement) { - ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement) { - ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(5)] - public void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement) + [VtblIndex(6)] + public void SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT Enablement) { - ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings*)Unsafe.AsPointer(ref this), Enablement); + ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D12DeviceRemovedExtendedDataSettings1*)Unsafe.AsPointer(ref this), Enablement); } } } \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems index 47368458..a3bd5273 100644 --- a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems +++ b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems @@ -189,7 +189,7 @@ - + From 6863c2bc8a50689bf0fae703cf52d2ceaee56df5 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 18:11:51 +0200 Subject: [PATCH 27/38] Add .NET Standard 2.0 polyfill types for DRED support --- .../um/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.cs | 36 ++++++++++++ .../um/d3d12/D3D12_AUTO_BREADCRUMB_OP.cs | 56 +++++++++++++++++++ .../D3D12_DRED_AUTO_BREADCRUMB_OUTPUT1.cs | 13 +++++ .../um/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.cs | 15 +++++ .../d3d12/ID3D12DeviceRemovedExtendedData1.cs | 50 +++++++++++++++++ .../TerraFX.Interop.Windows.projitems | 5 ++ 6 files changed, 175 insertions(+) create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_OP.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_AUTO_BREADCRUMB_OUTPUT1.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.cs create mode 100644 src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.cs new file mode 100644 index 00000000..a5376c65 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_NODE1.cs @@ -0,0 +1,36 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +namespace TerraFX.Interop.DirectX +{ + internal unsafe partial struct D3D12_AUTO_BREADCRUMB_NODE1 + { + [NativeTypeName("const char *")] + public sbyte* pCommandListDebugNameA; + + [NativeTypeName("const wchar_t *")] + public ushort* pCommandListDebugNameW; + + [NativeTypeName("const char *")] + public sbyte* pCommandQueueDebugNameA; + + [NativeTypeName("const wchar_t *")] + public ushort* pCommandQueueDebugNameW; + public ID3D12GraphicsCommandList* pCommandList; + public ID3D12CommandQueue* pCommandQueue; + public uint BreadcrumbCount; + + [NativeTypeName("const UINT *")] + public uint* pLastBreadcrumbValue; + + [NativeTypeName("const D3D12_AUTO_BREADCRUMB_OP *")] + public D3D12_AUTO_BREADCRUMB_OP* pCommandHistory; + + [NativeTypeName("const struct D3D12_AUTO_BREADCRUMB_NODE1 *")] + public D3D12_AUTO_BREADCRUMB_NODE1* pNext; + public uint BreadcrumbContextsCount; + public D3D12_DRED_BREADCRUMB_CONTEXT* pBreadcrumbContexts; + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_OP.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_OP.cs new file mode 100644 index 00000000..95dd83ec --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_AUTO_BREADCRUMB_OP.cs @@ -0,0 +1,56 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +namespace TerraFX.Interop.DirectX +{ + internal enum D3D12_AUTO_BREADCRUMB_OP + { + D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0, + D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1, + D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2, + D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3, + D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5, + D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6, + D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7, + D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8, + D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9, + D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11, + D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12, + D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13, + D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14, + D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16, + D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18, + D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19, + D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25, + D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27, + D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30, + D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31, + D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32, + D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36, + D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38, + D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42, + D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44, + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_AUTO_BREADCRUMB_OUTPUT1.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_AUTO_BREADCRUMB_OUTPUT1.cs new file mode 100644 index 00000000..57b9e182 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_AUTO_BREADCRUMB_OUTPUT1.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +namespace TerraFX.Interop.DirectX +{ + internal unsafe partial struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 + { + [NativeTypeName("const D3D12_AUTO_BREADCRUMB_NODE1 *")] + public D3D12_AUTO_BREADCRUMB_NODE1* pHeadAutoBreadcrumbNode; + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.cs new file mode 100644 index 00000000..bf5f8904 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_DRED_BREADCRUMB_CONTEXT.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +namespace TerraFX.Interop.DirectX +{ + internal unsafe partial struct D3D12_DRED_BREADCRUMB_CONTEXT + { + public uint BreadcrumbIndex; + + [NativeTypeName("const wchar_t *")] + public ushort* pContextString; + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs new file mode 100644 index 00000000..2e7d0d58 --- /dev/null +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/ID3D12DeviceRemovedExtendedData1.cs @@ -0,0 +1,50 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from d3d12.h in Microsoft.Direct3D.D3D12 v1.600.10 +// Original source is Copyright © Microsoft. Licensed under the MIT license + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + [Guid("9727A022-CF1D-4DDA-9EBA-EFFA653FC506")] + [NativeTypeName("struct ID3D12DeviceRemovedExtendedData1 : ID3D12DeviceRemovedExtendedData")] + [NativeInheritance("ID3D12DeviceRemovedExtendedData")] + internal unsafe partial struct ID3D12DeviceRemovedExtendedData1 + { + public void** lpVtbl; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(0)] + public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), riid, ppvObject); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(1)] + [return: NativeTypeName("ULONG")] + public uint AddRef() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(2)] + [return: NativeTypeName("ULONG")] + public uint Release() + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + [VtblIndex(5)] + public HRESULT GetAutoBreadcrumbsOutput1(D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1* pOutput) + { + return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D12DeviceRemovedExtendedData1*)Unsafe.AsPointer(ref this), pOutput); + } + } +} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems index a3bd5273..bbf1838f 100644 --- a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems +++ b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems @@ -72,6 +72,8 @@ + + @@ -98,6 +100,8 @@ + + @@ -189,6 +193,7 @@ + From 0ca0fe0260df4a27c99421fa9a128500472e5b66 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Jun 2022 18:12:12 +0200 Subject: [PATCH 28/38] Enable DRED debug output for breadcrumbs and contexts --- .../Helpers/DeviceHelper.ID3D12InfoQueue.cs | 81 ++++++++++++++++++- 1 file changed, 79 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs index 029bbf27..6a818106 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs @@ -2,6 +2,7 @@ using System.Runtime.InteropServices; using System.Text; using CommunityToolkit.Diagnostics; +using ComputeSharp.Core.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D3D12_MESSAGE_ID; @@ -60,8 +61,10 @@ partial class DeviceHelper builder.AppendLine($"[Severity]: {Enum.GetName(message->Severity)}"); builder.AppendLine($"[ID]: {Enum.GetName(message->ID)}"); + bool isDeviceRemovedMessage = message->ID is D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT; + // Special handling for device removal messages - if (message->ID is D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT or D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT) + if (isDeviceRemovedMessage) { HRESULT result = device.D3D12Device->GetDeviceRemovedReason(); @@ -82,7 +85,81 @@ partial class DeviceHelper } } - builder.Append($"[Description]: \"{new string(message->pDescription)}\""); + // If DRED is enabled, also output the available auto breadcrumbs + if (isDeviceRemovedMessage && Configuration.IsDeviceRemovedExtendedDataEnabled) + { + builder.AppendLine($"[Description]: \"{new string(message->pDescription)}\""); + + using ComPtr d3D12DeviceRemovedExtendedData = default; + + // Get the DRED data + int hresult = device.D3D12Device->QueryInterface( + riid: Windows.__uuidof(), + ppvObject: d3D12DeviceRemovedExtendedData.GetVoidAddressOf()); + + if (hresult != S.S_OK) + { + ThrowHelper.ThrowWin32Exception(hresult); + } + + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 d3D12DredAutoBreadcrumbsOutput; + + // Get the auto breadcrumbs for the current event + hresult = d3D12DeviceRemovedExtendedData.Get()->GetAutoBreadcrumbsOutput1(&d3D12DredAutoBreadcrumbsOutput); + + if (hresult != S.S_OK) + { + ThrowHelper.ThrowWin32Exception(hresult); + } + + builder.AppendLine("[DRED breadcrumbs START] ==============================="); + + int breadcrumbNodeIndex = 0; + + // Traverse all the auto breadcrumb nodes and print their contents + for (D3D12_AUTO_BREADCRUMB_NODE1* d3D12AutoBreadcrumbNode = d3D12DredAutoBreadcrumbsOutput.pHeadAutoBreadcrumbNode; + d3D12AutoBreadcrumbNode is not null; + d3D12AutoBreadcrumbNode = d3D12AutoBreadcrumbNode->pNext, breadcrumbNodeIndex++) + { + uint numberOfExecutedOps = *d3D12AutoBreadcrumbNode->pLastBreadcrumbValue; + + // For each auto breadcrumb node, not all recorded breadcrumb have actually been executed. To reduce the verbosity of the + // output and only show the most relevant info, indicate how many breadcrumbs were recorded and how many were actually + // executed, but then only display the executed ones in the code below. This makes it easier to debug hangs for users. + builder.AppendLine($"[NODE #{breadcrumbNodeIndex}]: {d3D12AutoBreadcrumbNode->BreadcrumbCount} total breadcrumb(s), {numberOfExecutedOps} executed breadcrumb(s)"); + + uint contextIndex = 0; + + for (uint commandIndex = 0; commandIndex < numberOfExecutedOps; commandIndex++) + { + // An D3D12_AUTO_BREADCRUMB_NODE1 object has two pointers: + // - pCommandHistory, pointing to the full list of available breadcrumbs. + // - pBreadcrumbContexts, pointing to the list of available contexts. + // Each context also has a field to indicate the index of the breadcrumb it belongs to. Since these indices are + // sorted in ascending order, the following code loops through the executed breadcrumbs and then only checks if + // the current index for the context list is within bounds, and if so, if the current context has a matching index. + // If that is the case, the context message is extracted and the index is incremented, otherwise just the opcode + // is added to the debug output. Essentially, this is somewhat similar to a merge algorithm for two ordered lists. + if (contextIndex < d3D12AutoBreadcrumbNode->BreadcrumbContextsCount && + d3D12AutoBreadcrumbNode->pBreadcrumbContexts[contextIndex].BreadcrumbIndex == commandIndex) + { + string context = new((char*)d3D12AutoBreadcrumbNode->pBreadcrumbContexts[contextIndex++].pContextString); + + builder.AppendLine($">> [OP #{commandIndex}]: {d3D12AutoBreadcrumbNode->pCommandHistory[commandIndex]}, \"{context}\""); + } + else + { + builder.AppendLine($">> [OP #{commandIndex}]: {d3D12AutoBreadcrumbNode->pCommandHistory[commandIndex]}"); + } + } + } + + builder.AppendLine("================================= [DRED breadcrumbs END]"); + } + else + { + builder.Append($"[Description]: \"{new string(message->pDescription)}\""); + } } finally { From 06cb67e49075805738b7a67cb3cf6d843125c7d5 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 21 Jun 2022 16:38:37 +0200 Subject: [PATCH 29/38] Fix .targets by adding prefixes to all properties and items --- .../ComputeSharp.Core.targets | 9 +++---- .../ComputeSharp.D2D1.targets | 11 ++++---- src/ComputeSharp.Pix/ComputeSharp.Pix.targets | 26 +++++++++---------- src/ComputeSharp/ComputeSharp.targets | 11 ++++---- 4 files changed, 27 insertions(+), 30 deletions(-) diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.targets b/src/ComputeSharp.Core/ComputeSharp.Core.targets index a6e129ef..c67a4d3f 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.targets +++ b/src/ComputeSharp.Core/ComputeSharp.Core.targets @@ -18,21 +18,20 @@ the same version) but Microsoft.Build.Tasks.CodeAnalysis.dll is where MSBuild loads the compiler tasks from so if someone is getting creative with msbuild tasks/targets this is the "most correct" assembly to check. --> - + - @(CurrentCompilerAssemblyIdentity->'%(Version)') - $(CurrentCompilerVersion.Split(';')[0]) + @(ComputeSharpCoreCurrentCompilerAssemblyIdentity->'%(Version)') - true + true - + diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets index 03b7aa52..5d93c4cf 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets @@ -18,28 +18,27 @@ the same version) but Microsoft.Build.Tasks.CodeAnalysis.dll is where MSBuild loads the compiler tasks from so if someone is getting creative with msbuild tasks/targets this is the "most correct" assembly to check. --> - + - @(CurrentCompilerAssemblyIdentity->'%(Version)') - $(CurrentCompilerVersion.Split(';')[0]) + @(ComputeSharpD2D1CurrentCompilerAssemblyIdentity->'%(Version)') - true + true - + - + diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.targets b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets index 73e4e365..311809be 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.targets +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.targets @@ -7,44 +7,44 @@ - winpixeventruntime.1.0.220124001 + winpixeventruntime.1.0.220124001 - false - true + false + true - false - true + false + true - - + - - + - - + - - + diff --git a/src/ComputeSharp/ComputeSharp.targets b/src/ComputeSharp/ComputeSharp.targets index 8e20554b..e2fa4629 100644 --- a/src/ComputeSharp/ComputeSharp.targets +++ b/src/ComputeSharp/ComputeSharp.targets @@ -18,28 +18,27 @@ the same version) but Microsoft.Build.Tasks.CodeAnalysis.dll is where MSBuild loads the compiler tasks from so if someone is getting creative with msbuild tasks/targets this is the "most correct" assembly to check. --> - + - @(CurrentCompilerAssemblyIdentity->'%(Version)') - $(CurrentCompilerVersion.Split(';')[0]) + @(ComputeSharpCurrentCompilerAssemblyIdentity->'%(Version)') - true + true - + - + From 318ff8d2c405943f53a2bfcaf485e340d86a0ee0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 14:49:15 +0200 Subject: [PATCH 30/38] Refactor dynamic native libs tests --- .../ComputeSharp.Sample.NuGet/nuget.config | 8 ----- ...Sharp.Tests.NativeLibrariesResolver.csproj | 5 +++ .../NativeLibrariesResolverTests.cs | 11 ++++-- .../Project}/ComputeSharp.Sample.NuGet.csproj | 3 +- .../Project/Program.cs | 35 +++++++++++++++++++ 5 files changed, 50 insertions(+), 12 deletions(-) delete mode 100644 samples/ComputeSharp.Sample.NuGet/nuget.config rename {samples/ComputeSharp.Sample.NuGet => tests/ComputeSharp.Tests.NativeLibrariesResolver/Project}/ComputeSharp.Sample.NuGet.csproj (82%) create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs diff --git a/samples/ComputeSharp.Sample.NuGet/nuget.config b/samples/ComputeSharp.Sample.NuGet/nuget.config deleted file mode 100644 index 995d3a62..00000000 --- a/samples/ComputeSharp.Sample.NuGet/nuget.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj index cb3020de..8f6ea8d8 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj @@ -11,4 +11,9 @@ + + + + + diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs index c949a9f3..c1c9d50a 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs @@ -19,17 +19,24 @@ public class NativeLibrariesResolverTests { string path = Path.GetDirectoryName(typeof(NativeLibrariesResolverTests).Assembly.Location)!; + while (Path.GetFileName(path) is not "ComputeSharp.Tests.NativeLibrariesResolver") + { + path = Path.GetDirectoryName(path)!; + } + + SampleProjectDirectory = Path.Combine(path, "Project", "ComputeSharp.Sample.NuGet"); + while (Path.GetFileName(path) is not "ComputeSharp") { path = Path.GetDirectoryName(path)!; } - SampleProjectDirectory = Path.Combine(path, "samples", "ComputeSharp.Sample.NuGet"); - + string corePackagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Core", "ComputeSharp.Core.msbuildproj"); string packagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Package", "ComputeSharp.Package.msbuildproj"); string dynamicPackagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Dynamic.Package", "ComputeSharp.Dynamic.Package.msbuildproj"); // Run dotnet pack and on the packaging projects, to ensure the local NuGet packages are available + Process.Start("dotnet", $"pack {corePackagingProjectPath} -c Release").WaitForExit(); Process.Start("dotnet", $"pack {packagingProjectPath} -c Release").WaitForExit(); Process.Start("dotnet", $"pack {dynamicPackagingProjectPath} -c Release").WaitForExit(); } diff --git a/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj similarity index 82% rename from samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj rename to tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj index f75aab80..6bd747f3 100644 --- a/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj @@ -4,6 +4,7 @@ Exe net472;netcoreapp3.1;net6.0 AnyCPU;x64;ARM64 + $(PackageOutputPath) @@ -12,6 +13,4 @@ - - diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs new file mode 100644 index 00000000..31b654f0 --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs @@ -0,0 +1,35 @@ +using System.Diagnostics; +using System.Linq; +using ComputeSharp; + +float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray(); + +// Create the graphics buffer +using ReadWriteBuffer gpuBuffer = GraphicsDevice.Default.AllocateReadWriteBuffer(array); + +// Run the shader +GraphicsDevice.Default.For(100, new MultiplyByTwo(gpuBuffer)); + +// Get the data back +float[] result = gpuBuffer.ToArray(); + +// Validate results +for (int i = 0; i < array.Length; i++) +{ + Trace.Assert(result[i] == array[i] * 2); +} + +/// +/// A sample kernel that requires dynamic compilation, as it's not precompiled. +/// +[AutoConstructor] +internal readonly partial struct MultiplyByTwo : IComputeShader +{ + public readonly ReadWriteBuffer buffer; + + /// + public void Execute() + { + buffer[ThreadIds.X] *= 2; + } +} From 1649001722e980a20a5c5dd4a36054f5b32b3d5d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 14:58:44 +0200 Subject: [PATCH 31/38] Restore artifacts nuget.config file --- .../Project/ComputeSharp.Sample.NuGet.csproj | 1 - .../Project/nuget.config | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj index 6bd747f3..37213757 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj @@ -4,7 +4,6 @@ Exe net472;netcoreapp3.1;net6.0 AnyCPU;x64;ARM64 - $(PackageOutputPath) diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config new file mode 100644 index 00000000..e1d1b6e5 --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config @@ -0,0 +1,8 @@ + + + + + + + + From 3476aef589135d915da2beb05b23e4921ef0d60d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 15:28:44 +0200 Subject: [PATCH 32/38] Move and fix NuGet test project --- .github/workflows/dotnet.yml | 24 +++++++++---------- ComputeSharp.sln | 10 +++++++- .../ComputeSharp.NuGet.csproj} | 0 .../Project => ComputeSharp.NuGet}/Program.cs | 0 .../nuget.config | 2 +- .../NativeLibrariesResolverTests.cs | 16 ++++++------- 6 files changed, 30 insertions(+), 22 deletions(-) rename tests/{ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj => ComputeSharp.NuGet/ComputeSharp.NuGet.csproj} (100%) rename tests/{ComputeSharp.Tests.NativeLibrariesResolver/Project => ComputeSharp.NuGet}/Program.cs (100%) rename tests/{ComputeSharp.Tests.NativeLibrariesResolver/Project => ComputeSharp.NuGet}/nuget.config (81%) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2b0e5901..2a9ec01b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -251,23 +251,23 @@ jobs: with: name: nuget_preview path: artifacts - - name: Build ComputeSharp.Sample.NuGet (.NET 6) - run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f net6.0 + - name: Build ComputeSharp.NuGet (.NET 6) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net6.0 shell: cmd - - name: Run ComputeSharp.Sample.NuGet (.NET 6) - run: dotnet samples\ComputeSharp.Sample.NuGet\bin\Release\net6.0\ComputeSharp.Sample.NuGet.dll + - name: Run ComputeSharp.NuGet (.NET 6) + run: dotnet tests\ComputeSharp.NuGet\bin\Release\net6.0\ComputeSharp.NuGet.dll shell: cmd - - name: Build ComputeSharp.Sample.NuGet (.NET Core 3.1) - run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 + - name: Build ComputeSharp.NuGet (.NET Core 3.1) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 shell: cmd - - name: Run ComputeSharp.Sample.NuGet (.NET Core 3.1) - run: samples\ComputeSharp.Sample.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.Sample.NuGet.exe + - name: Run ComputeSharp.NuGet (.NET Core 3.1) + run: tests\ComputeSharp.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.NuGet.exe shell: cmd - - name: Build ComputeSharp.Sample.NuGet (.NET Framework 4.7.2) - run: dotnet build samples\ComputeSharp.Sample.NuGet\ComputeSharp.Sample.NuGet.csproj -c Release -f net472 /p:Platform=x64 + - name: Build ComputeSharp.NuGet (.NET Framework 4.7.2) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net472 /p:Platform=x64 shell: cmd - - name: Run ComputeSharp.Sample.NuGet (.NET Framework 4.7.2) - run: samples\ComputeSharp.Sample.NuGet\bin\x64\Release\net472\ComputeSharp.Sample.NuGet.exe + - name: Run ComputeSharp.NuGet (.NET Framework 4.7.2) + run: tests\ComputeSharp.NuGet\bin\x64\Release\net472\ComputeSharp.NuGet.exe shell: cmd # Run the extra tests to validate a number of build and publishing configurations. diff --git a/ComputeSharp.sln b/ComputeSharp.sln index ea5f3016..f6331a3e 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -28,7 +28,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_SolutionItems", "_Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGet", "NuGet", "{FB17EF84-9208-47AC-921F-680CB1DAD8BA}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Packages", "Packages", "{FB17EF84-9208-47AC-921F-680CB1DAD8BA}" ProjectSection(SolutionItems) = preProject src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj = src\ComputeSharp.Core.Package\ComputeSharp.Core.Package.msbuildproj src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj = src\ComputeSharp.D2D1.Package\ComputeSharp.D2D1.Package.msbuildproj @@ -103,6 +103,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests.Ass EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Pix", "src\ComputeSharp.Pix\ComputeSharp.Pix.csproj", "{14EF12A3-90E6-4683-BD71-9896AF87026B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.NuGet", "ComputeSharp.NuGet", "{CBA545B4-31EF-4E9F-A1A8-2A1290B54046}" + ProjectSection(SolutionItems) = preProject + tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj = tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj + tests\ComputeSharp.NuGet\nuget.config = tests\ComputeSharp.NuGet\nuget.config + tests\ComputeSharp.NuGet\Program.cs = tests\ComputeSharp.NuGet\Program.cs + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -454,6 +461,7 @@ Global {3ACACF03-6B20-40BA-B8EC-11AC1624D2C9} = {8DCE343F-BA78-4FE1-B562-B57C603A8BAA} {209C95A3-FA53-431B-B688-3299CA6C29D2} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {94178D51-0097-4AD2-B3D0-827E40D62F2E} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} + {CBA545B4-31EF-4E9F-A1A8-2A1290B54046} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC} diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj similarity index 100% rename from tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/ComputeSharp.Sample.NuGet.csproj rename to tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs b/tests/ComputeSharp.NuGet/Program.cs similarity index 100% rename from tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/Program.cs rename to tests/ComputeSharp.NuGet/Program.cs diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config b/tests/ComputeSharp.NuGet/nuget.config similarity index 81% rename from tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config rename to tests/ComputeSharp.NuGet/nuget.config index e1d1b6e5..995d3a62 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Project/nuget.config +++ b/tests/ComputeSharp.NuGet/nuget.config @@ -3,6 +3,6 @@ - + diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs index c1c9d50a..1cf6ffe2 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs @@ -19,12 +19,12 @@ public class NativeLibrariesResolverTests { string path = Path.GetDirectoryName(typeof(NativeLibrariesResolverTests).Assembly.Location)!; - while (Path.GetFileName(path) is not "ComputeSharp.Tests.NativeLibrariesResolver") + while (Path.GetFileName(path) is not "tests") { path = Path.GetDirectoryName(path)!; } - SampleProjectDirectory = Path.Combine(path, "Project", "ComputeSharp.Sample.NuGet"); + SampleProjectDirectory = Path.Combine(path, "ComputeSharp.NuGet"); while (Path.GetFileName(path) is not "ComputeSharp") { @@ -42,7 +42,7 @@ public class NativeLibrariesResolverTests } /// - /// Gets the directory of the ComputeSharp.Sample.NuGet project. + /// Gets the directory of the ComputeSharp.NuGet project. /// private static string? SampleProjectDirectory { get; set; } @@ -68,7 +68,7 @@ public class NativeLibrariesResolverTests CleanSampleProject(configuration, rid); BuildSampleProject(configuration, rid); - string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.dll"); + string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.dll"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", realtivePathToDll)); } @@ -85,7 +85,7 @@ public class NativeLibrariesResolverTests string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.Sample.NuGet.dll")); + Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.NuGet.dll")); } [TestMethod] @@ -98,7 +98,7 @@ public class NativeLibrariesResolverTests CleanSampleProject(configuration, rid); BuildSampleProject(configuration, rid); - string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.exe"); + string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.exe"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, relativePathToAppHost, "")); } @@ -115,7 +115,7 @@ public class NativeLibrariesResolverTests string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.Sample.NuGet.exe", "")); + Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.NuGet.exe", "")); } @@ -134,7 +134,7 @@ public class NativeLibrariesResolverTests Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl"); - string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Sample.NuGet.exe"); + string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.NuGet.exe"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, pathToAppHost, "")); } From 3e1f18b6597c6ac2ddc076c5a78625ede3cc3673 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 17:28:20 +0200 Subject: [PATCH 33/38] Add ComputeSharp.Pix.NuGet test project --- .github/workflows/dotnet.yml | 43 ++++++++++++++++++- ComputeSharp.sln | 8 ++++ .../ComputeSharp.Pix.NuGet.csproj | 15 +++++++ tests/ComputeSharp.Pix.NuGet/Program.cs | 42 ++++++++++++++++++ tests/ComputeSharp.Pix.NuGet/nuget.config | 8 ++++ 5 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj create mode 100644 tests/ComputeSharp.Pix.NuGet/Program.cs create mode 100644 tests/ComputeSharp.Pix.NuGet/nuget.config diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2a9ec01b..3603191f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -270,6 +270,45 @@ jobs: run: tests\ComputeSharp.NuGet\bin\x64\Release\net472\ComputeSharp.NuGet.exe shell: cmd + # Download the NuGet packages and test the ComputeSharp.Pix dependency + verify-packages-pix: + if: success() + needs: [build-packages] + runs-on: windows-2022 + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Create local NuGet feed + run: mkdir artifacts + shell: cmd + - name: Download package artifacts + uses: actions/download-artifact@v2 + with: + name: nuget_preview + path: artifacts + - name: Build ComputeSharp.Pix.NuGet (.NET 6) + run: dotnet build tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj -c Release -f net6.0 + shell: cmd + - name: Run ComputeSharp.Pix.NuGet (.NET 6) + run: dotnet tests\ComputeSharp.Pix.NuGet\bin\Release\net6.0\ComputeSharp.Pix.NuGet.dll + shell: cmd + - name: Build ComputeSharp.Pix.NuGet (.NET Core 3.1) + run: dotnet build tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 + shell: cmd + - name: Run ComputeSharp.Pix.NuGet (.NET Core 3.1) + run: tests\ComputeSharp.Pix.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.Pix.NuGet.exe + shell: cmd + - name: Build ComputeSharp.Pix.NuGet (.NET Framework 4.7.2) + run: dotnet build tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj -c Release -f net472 /p:Platform=x64 + shell: cmd + - name: Run ComputeSharp.Pix.NuGet (.NET Framework 4.7.2) + run: tests\ComputeSharp.Pix.NuGet\bin\x64\Release\net472\ComputeSharp.Pix.NuGet.exe + shell: cmd + # Run the extra tests to validate a number of build and publishing configurations. # This is used to ensure the native dependencies can always be loaded correctly # regardless of whether the app is shipping with R2R, self-contained, etc. @@ -290,7 +329,7 @@ jobs: # Publish the packages to GitHub packages publish-nightlies-github: - needs: [ run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-package-native-libs ] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: @@ -306,7 +345,7 @@ jobs: # Publish the packages to Azure DevOps publish-nightlies-azure-devops: - needs: [ run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-package-native-libs ] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: diff --git a/ComputeSharp.sln b/ComputeSharp.sln index f6331a3e..201caf5f 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -110,6 +110,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.NuGet", "Compu tests\ComputeSharp.NuGet\Program.cs = tests\ComputeSharp.NuGet\Program.cs EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Pix.NuGet", "ComputeSharp.Pix.NuGet", "{C0B903AA-F32C-4760-B4B6-199AC4FE1C5A}" + ProjectSection(SolutionItems) = preProject + tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj = tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj + tests\ComputeSharp.Pix.NuGet\nuget.config = tests\ComputeSharp.Pix.NuGet\nuget.config + tests\ComputeSharp.Pix.NuGet\Program.cs = tests\ComputeSharp.Pix.NuGet\Program.cs + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -462,6 +469,7 @@ Global {209C95A3-FA53-431B-B688-3299CA6C29D2} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {94178D51-0097-4AD2-B3D0-827E40D62F2E} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {CBA545B4-31EF-4E9F-A1A8-2A1290B54046} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} + {C0B903AA-F32C-4760-B4B6-199AC4FE1C5A} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC} diff --git a/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj new file mode 100644 index 00000000..5f156d64 --- /dev/null +++ b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj @@ -0,0 +1,15 @@ + + + + Exe + net472;netcoreapp3.1;net6.0 + AnyCPU;x64;ARM64 + + + + + + + + + diff --git a/tests/ComputeSharp.Pix.NuGet/Program.cs b/tests/ComputeSharp.Pix.NuGet/Program.cs new file mode 100644 index 00000000..c2119998 --- /dev/null +++ b/tests/ComputeSharp.Pix.NuGet/Program.cs @@ -0,0 +1,42 @@ +using System.Diagnostics; +using System.Linq; +using ComputeSharp; + +float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray(); + +// Create the graphics buffer +using ReadWriteBuffer gpuBuffer = GraphicsDevice.Default.AllocateReadWriteBuffer(array); + +// Run the shader +using (var context = GraphicsDevice.Default.CreateComputeContext()) +{ + context.Log("Dispatching shader"); + context.BeginEvent("Dispatching event"); + context.For(100, new MultiplyByTwo(gpuBuffer)); + context.EndEvent(); +} + +// Get the data back +float[] result = gpuBuffer.ToArray(); + +// Validate results +for (int i = 0; i < array.Length; i++) +{ + Trace.Assert(result[i] == array[i] * 2); +} + +/// +/// A sample kernel that is precompiled. +/// +[EmbeddedBytecode(DispatchAxis.X)] +[AutoConstructor] +internal readonly partial struct MultiplyByTwo : IComputeShader +{ + public readonly ReadWriteBuffer buffer; + + /// + public void Execute() + { + buffer[ThreadIds.X] *= 2; + } +} diff --git a/tests/ComputeSharp.Pix.NuGet/nuget.config b/tests/ComputeSharp.Pix.NuGet/nuget.config new file mode 100644 index 00000000..995d3a62 --- /dev/null +++ b/tests/ComputeSharp.Pix.NuGet/nuget.config @@ -0,0 +1,8 @@ + + + + + + + + From bc1669d38ff0bb0d74fb0b391b105dc9ed38ce73 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 17:38:08 +0200 Subject: [PATCH 34/38] Rename native libraries test for Dynamic project --- .github/workflows/dotnet.yml | 30 +++++++++---------- ComputeSharp.sln | 8 ++--- .../ComputeSharp.Dynamic.NuGet.csproj} | 0 .../Program.cs | 0 .../nuget.config | 0 .../NativeLibrariesResolverTests.cs | 14 ++++----- 6 files changed, 26 insertions(+), 26 deletions(-) rename tests/{ComputeSharp.NuGet/ComputeSharp.NuGet.csproj => ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj} (100%) rename tests/{ComputeSharp.NuGet => ComputeSharp.Dynamic.NuGet}/Program.cs (100%) rename tests/{ComputeSharp.NuGet => ComputeSharp.Dynamic.NuGet}/nuget.config (100%) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3603191f..bc49e552 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -232,7 +232,7 @@ jobs: # Download the NuGet packages generated in the previous job and use them # to build and run the sample project referencing them. This is used as # a test to ensure the NuGet packages work in a consuming project. - verify-packages: + verify-packages-dynamic: if: success() needs: [build-packages] runs-on: windows-2022 @@ -251,23 +251,23 @@ jobs: with: name: nuget_preview path: artifacts - - name: Build ComputeSharp.NuGet (.NET 6) - run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net6.0 + - name: Build ComputeSharp.Dynamic.NuGet (.NET 6) + run: dotnet build tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj -c Release -f net6.0 shell: cmd - - name: Run ComputeSharp.NuGet (.NET 6) - run: dotnet tests\ComputeSharp.NuGet\bin\Release\net6.0\ComputeSharp.NuGet.dll + - name: Run ComputeSharp.Dynamic.NuGet (.NET 6) + run: dotnet tests\ComputeSharp.Dynamic.NuGet\bin\Release\net6.0\ComputeSharp.Dynamic.NuGet.dll shell: cmd - - name: Build ComputeSharp.NuGet (.NET Core 3.1) - run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 + - name: Build ComputeSharp.Dynamic.NuGet (.NET Core 3.1) + run: dotnet build tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 shell: cmd - - name: Run ComputeSharp.NuGet (.NET Core 3.1) - run: tests\ComputeSharp.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.NuGet.exe + - name: Run ComputeSharp.Dynamic.NuGet (.NET Core 3.1) + run: tests\ComputeSharp.Dynamic.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.Dynamic.NuGet.exe shell: cmd - - name: Build ComputeSharp.NuGet (.NET Framework 4.7.2) - run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net472 /p:Platform=x64 + - name: Build ComputeSharp.Dynamic.NuGet (.NET Framework 4.7.2) + run: dotnet build tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj -c Release -f net472 /p:Platform=x64 shell: cmd - - name: Run ComputeSharp.NuGet (.NET Framework 4.7.2) - run: tests\ComputeSharp.NuGet\bin\x64\Release\net472\ComputeSharp.NuGet.exe + - name: Run ComputeSharp.Dynamic.NuGet (.NET Framework 4.7.2) + run: tests\ComputeSharp.Dynamic.NuGet\bin\x64\Release\net472\ComputeSharp.Dynamic.NuGet.exe shell: cmd # Download the NuGet packages and test the ComputeSharp.Pix dependency @@ -329,7 +329,7 @@ jobs: # Publish the packages to GitHub packages publish-nightlies-github: - needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-pix, verify-package-native-libs] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: @@ -345,7 +345,7 @@ jobs: # Publish the packages to Azure DevOps publish-nightlies-azure-devops: - needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-pix, verify-package-native-libs] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 201caf5f..4c907251 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -103,11 +103,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Tests.Ass EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.Pix", "src\ComputeSharp.Pix\ComputeSharp.Pix.csproj", "{14EF12A3-90E6-4683-BD71-9896AF87026B}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.NuGet", "ComputeSharp.NuGet", "{CBA545B4-31EF-4E9F-A1A8-2A1290B54046}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Dynamic.NuGet", "ComputeSharp.Dynamic.NuGet", "{CBA545B4-31EF-4E9F-A1A8-2A1290B54046}" ProjectSection(SolutionItems) = preProject - tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj = tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj - tests\ComputeSharp.NuGet\nuget.config = tests\ComputeSharp.NuGet\nuget.config - tests\ComputeSharp.NuGet\Program.cs = tests\ComputeSharp.NuGet\Program.cs + tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj = tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj + tests\ComputeSharp.Dynamic.NuGet\nuget.config = tests\ComputeSharp.Dynamic.NuGet\nuget.config + tests\ComputeSharp.Dynamic.NuGet\Program.cs = tests\ComputeSharp.Dynamic.NuGet\Program.cs EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Pix.NuGet", "ComputeSharp.Pix.NuGet", "{C0B903AA-F32C-4760-B4B6-199AC4FE1C5A}" diff --git a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj b/tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj similarity index 100% rename from tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj rename to tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj diff --git a/tests/ComputeSharp.NuGet/Program.cs b/tests/ComputeSharp.Dynamic.NuGet/Program.cs similarity index 100% rename from tests/ComputeSharp.NuGet/Program.cs rename to tests/ComputeSharp.Dynamic.NuGet/Program.cs diff --git a/tests/ComputeSharp.NuGet/nuget.config b/tests/ComputeSharp.Dynamic.NuGet/nuget.config similarity index 100% rename from tests/ComputeSharp.NuGet/nuget.config rename to tests/ComputeSharp.Dynamic.NuGet/nuget.config diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs index 1cf6ffe2..52100812 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs @@ -24,7 +24,7 @@ public class NativeLibrariesResolverTests path = Path.GetDirectoryName(path)!; } - SampleProjectDirectory = Path.Combine(path, "ComputeSharp.NuGet"); + SampleProjectDirectory = Path.Combine(path, "ComputeSharp.Dynamic.NuGet"); while (Path.GetFileName(path) is not "ComputeSharp") { @@ -42,7 +42,7 @@ public class NativeLibrariesResolverTests } /// - /// Gets the directory of the ComputeSharp.NuGet project. + /// Gets the directory of the ComputeSharp.Dynamic.NuGet project. /// private static string? SampleProjectDirectory { get; set; } @@ -68,7 +68,7 @@ public class NativeLibrariesResolverTests CleanSampleProject(configuration, rid); BuildSampleProject(configuration, rid); - string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.dll"); + string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.dll"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", realtivePathToDll)); } @@ -85,7 +85,7 @@ public class NativeLibrariesResolverTests string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.NuGet.dll")); + Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.Dynamic.NuGet.dll")); } [TestMethod] @@ -98,7 +98,7 @@ public class NativeLibrariesResolverTests CleanSampleProject(configuration, rid); BuildSampleProject(configuration, rid); - string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.exe"); + string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.exe"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, relativePathToAppHost, "")); } @@ -115,7 +115,7 @@ public class NativeLibrariesResolverTests string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.NuGet.exe", "")); + Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.Dynamic.NuGet.exe", "")); } @@ -134,7 +134,7 @@ public class NativeLibrariesResolverTests Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl"); - string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.NuGet.exe"); + string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Dynamic.NuGet.exe"); Assert.AreEqual(0, Exec(SampleProjectDirectory!, pathToAppHost, "")); } From e04150592c1be3776f20cf93acd6e8e7be6038e0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 17:42:06 +0200 Subject: [PATCH 35/38] Add NuGet test project for core packages --- .github/workflows/dotnet.yml | 43 ++++++++++++++++++- ComputeSharp.sln | 8 ++++ .../ComputeSharp.NuGet.csproj | 14 ++++++ tests/ComputeSharp.NuGet/Program.cs | 36 ++++++++++++++++ tests/ComputeSharp.NuGet/nuget.config | 8 ++++ 5 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj create mode 100644 tests/ComputeSharp.NuGet/Program.cs create mode 100644 tests/ComputeSharp.NuGet/nuget.config diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bc49e552..e307114c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -232,6 +232,45 @@ jobs: # Download the NuGet packages generated in the previous job and use them # to build and run the sample project referencing them. This is used as # a test to ensure the NuGet packages work in a consuming project. + verify-packages: + if: success() + needs: [build-packages] + runs-on: windows-2022 + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + - name: Create local NuGet feed + run: mkdir artifacts + shell: cmd + - name: Download package artifacts + uses: actions/download-artifact@v2 + with: + name: nuget_preview + path: artifacts + - name: Build ComputeSharp.NuGet (.NET 6) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net6.0 + shell: cmd + - name: Run ComputeSharp.NuGet (.NET 6) + run: dotnet tests\ComputeSharp.NuGet\bin\Release\net6.0\ComputeSharp.NuGet.dll + shell: cmd + - name: Build ComputeSharp.NuGet (.NET Core 3.1) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f netcoreapp3.1 -r win-x64 + shell: cmd + - name: Run ComputeSharp.NuGet (.NET Core 3.1) + run: tests\ComputeSharp.NuGet\bin\Release\netcoreapp3.1\win-x64\ComputeSharp.NuGet.exe + shell: cmd + - name: Build ComputeSharp.NuGet (.NET Framework 4.7.2) + run: dotnet build tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj -c Release -f net472 /p:Platform=x64 + shell: cmd + - name: Run ComputeSharp.NuGet (.NET Framework 4.7.2) + run: tests\ComputeSharp.NuGet\bin\x64\Release\net472\ComputeSharp.NuGet.exe + shell: cmd + + # Download the NuGet packages and test the ComputeSharp.Dynamic dependency verify-packages-dynamic: if: success() needs: [build-packages] @@ -329,7 +368,7 @@ jobs: # Publish the packages to GitHub packages publish-nightlies-github: - needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: @@ -345,7 +384,7 @@ jobs: # Publish the packages to Azure DevOps publish-nightlies-azure-devops: - needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] + needs: [run-dx12-tests, run-d2d1-tests, run-dx12-samples, verify-packages, verify-packages-dynamic, verify-packages-pix, verify-package-native-libs] runs-on: windows-2022 if: ${{github.event_name == 'push'}} steps: diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 4c907251..880d7110 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -117,6 +117,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Pix.NuGet", "C tests\ComputeSharp.Pix.NuGet\Program.cs = tests\ComputeSharp.Pix.NuGet\Program.cs EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.NuGet", "ComputeSharp.NuGet", "{E3403F19-A0D8-4317-8A54-322C7A13F2A2}" + ProjectSection(SolutionItems) = preProject + tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj = tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj + tests\ComputeSharp.NuGet\nuget.config = tests\ComputeSharp.NuGet\nuget.config + tests\ComputeSharp.NuGet\Program.cs = tests\ComputeSharp.NuGet\Program.cs + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -470,6 +477,7 @@ Global {94178D51-0097-4AD2-B3D0-827E40D62F2E} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {CBA545B4-31EF-4E9F-A1A8-2A1290B54046} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {C0B903AA-F32C-4760-B4B6-199AC4FE1C5A} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} + {E3403F19-A0D8-4317-8A54-322C7A13F2A2} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC} diff --git a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj new file mode 100644 index 00000000..7bdf5213 --- /dev/null +++ b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj @@ -0,0 +1,14 @@ + + + + Exe + net472;netcoreapp3.1;net6.0 + AnyCPU;x64;ARM64 + + + + + + + + diff --git a/tests/ComputeSharp.NuGet/Program.cs b/tests/ComputeSharp.NuGet/Program.cs new file mode 100644 index 00000000..591d80de --- /dev/null +++ b/tests/ComputeSharp.NuGet/Program.cs @@ -0,0 +1,36 @@ +using System.Diagnostics; +using System.Linq; +using ComputeSharp; + +float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray(); + +// Create the graphics buffer +using ReadWriteBuffer gpuBuffer = GraphicsDevice.Default.AllocateReadWriteBuffer(array); + +// Run the shader +GraphicsDevice.Default.For(100, new MultiplyByTwo(gpuBuffer)); + +// Get the data back +float[] result = gpuBuffer.ToArray(); + +// Validate results +for (int i = 0; i < array.Length; i++) +{ + Trace.Assert(result[i] == array[i] * 2); +} + +/// +/// A sample kernel that is precompiled. +/// +[EmbeddedBytecode(DispatchAxis.X)] +[AutoConstructor] +internal readonly partial struct MultiplyByTwo : IComputeShader +{ + public readonly ReadWriteBuffer buffer; + + /// + public void Execute() + { + buffer[ThreadIds.X] *= 2; + } +} diff --git a/tests/ComputeSharp.NuGet/nuget.config b/tests/ComputeSharp.NuGet/nuget.config new file mode 100644 index 00000000..995d3a62 --- /dev/null +++ b/tests/ComputeSharp.NuGet/nuget.config @@ -0,0 +1,8 @@ + + + + + + + + From 205dd826666efe8f7f5afc6b849ad8d49277a8ca Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 18:30:17 +0200 Subject: [PATCH 36/38] Refactor NativeLibrariesResolver project to be more modular --- ...Sharp.Tests.NativeLibrariesResolver.csproj | 4 +- .../NativeLibrariesResolverTestsBase.cs | 285 ++++++++++++++++++ .../NativeLibrariesResolverTests.cs | 281 +---------------- .../Properties/AssemblyInfo.cs | 3 + 4 files changed, 300 insertions(+), 273 deletions(-) create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/Helpers/NativeLibrariesResolverTestsBase.cs create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/Properties/AssemblyInfo.cs diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj index 8f6ea8d8..21bca770 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Helpers/NativeLibrariesResolverTestsBase.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Helpers/NativeLibrariesResolverTestsBase.cs new file mode 100644 index 00000000..503b491a --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Helpers/NativeLibrariesResolverTestsBase.cs @@ -0,0 +1,285 @@ +using System.ComponentModel; +using System.Diagnostics; +using System.IO; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ComputeSharp.Tests.NativeLibrariesResolver.Helpers; + +/// +/// A base class to implement native libraries tests. +/// +public abstract class NativeLibrariesResolverTestsBase +{ + /// + /// Gets the name of the test project. + /// + protected abstract string SampleProjectName { get; } + + /// + /// Gets the directory containing the current test project. + /// + private string SampleProjectDirectory + { + get + { + string path = Path.GetDirectoryName(typeof(NativeLibrariesResolverTestsBase).Assembly.Location)!; + + while (Path.GetFileName(path) is not "tests") + { + path = Path.GetDirectoryName(path)!; + } + + return Path.Combine(path, SampleProjectName); + } + } + + [TestMethod] + [DataRow(Configuration.Debug, RID.None)] + [DataRow(Configuration.Debug, RID.Win_x64)] + [DataRow(Configuration.Release, RID.None)] + [DataRow(Configuration.Release, RID.Win_x64)] + public void DotnetRunWorks(Configuration configuration, RID rid) + { + CleanSampleProject(configuration, rid); + + Assert.AreEqual(0, Exec(SampleProjectDirectory, "dotnet", $"run -c {configuration} -f net6.0 {ToOption(rid)}")); + } + + [TestMethod] + [DataRow(Configuration.Debug, RID.None)] + [DataRow(Configuration.Debug, RID.Win_x64)] + [DataRow(Configuration.Release, RID.None)] + [DataRow(Configuration.Release, RID.Win_x64)] + public void DotnetBuildWithRunningDotnetHostFromProjectDirectoryWorks(Configuration configuration, RID rid) + { + CleanSampleProject(configuration, rid); + BuildSampleProject(configuration, rid); + + string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", $"{SampleProjectName}.dll"); + + Assert.AreEqual(0, Exec(SampleProjectDirectory, "dotnet", realtivePathToDll)); + } + + [TestMethod] + [DataRow(Configuration.Debug, RID.None)] + [DataRow(Configuration.Debug, RID.Win_x64)] + [DataRow(Configuration.Release, RID.None)] + [DataRow(Configuration.Release, RID.Win_x64)] + public void DotnetBuildWithRunningDotnetHostDirectlyWorks(Configuration configuration, RID rid) + { + CleanSampleProject(configuration, rid); + BuildSampleProject(configuration, rid); + + string pathToDllDirectory = Path.Combine(SampleProjectDirectory, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); + + Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", $"{SampleProjectName}.dll")); + } + + [TestMethod] + [DataRow(Configuration.Debug, RID.None)] + [DataRow(Configuration.Debug, RID.Win_x64)] + [DataRow(Configuration.Release, RID.None)] + [DataRow(Configuration.Release, RID.Win_x64)] + public void DotnetBuildWithRunningAppHostFromProjectDirectoryWorks(Configuration configuration, RID rid) + { + CleanSampleProject(configuration, rid); + BuildSampleProject(configuration, rid); + + string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", $"{SampleProjectName}.exe"); + + Assert.AreEqual(0, Exec(SampleProjectDirectory, relativePathToAppHost, "")); + } + + [TestMethod] + [DataRow(Configuration.Debug, RID.None)] + [DataRow(Configuration.Debug, RID.Win_x64)] + [DataRow(Configuration.Release, RID.None)] + [DataRow(Configuration.Release, RID.Win_x64)] + public void DotnetBuildWithRunningAppHostDirectlyWorks(Configuration configuration, RID rid) + { + CleanSampleProject(configuration, rid); + BuildSampleProject(configuration, rid); + + string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); + + Assert.AreEqual(0, Exec(pathToAppHostDirectory, $"{SampleProjectName}.exe", "")); + } + + + [TestMethod] + [DataRow(PublishMode.SelfContained, DeploymentMode.Multiassembly, NativeLibrariesDeploymentMode.NotApplicable)] + [DataRow(PublishMode.FrameworkDependent, DeploymentMode.Multiassembly, NativeLibrariesDeploymentMode.NotApplicable)] + [DataRow(PublishMode.SelfContained, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.CopyToApplicationDirectory)] + [DataRow(PublishMode.SelfContained, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory)] + [DataRow(PublishMode.FrameworkDependent, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.CopyToApplicationDirectory)] + [DataRow(PublishMode.FrameworkDependent, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory)] + public void DotnetPublishWorks(PublishMode publishMode, DeploymentMode deploymentMode, NativeLibrariesDeploymentMode nativeLibsDeploymentMode) + { + // Publishing without specifying a RID is not supported. + // Furthermore, only publishing in Release mode is tested. + CleanSampleProject(Configuration.Release, RID.Win_x64); + + Exec(SampleProjectDirectory, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl"); + + string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", $"{SampleProjectName}.exe"); + + Assert.AreEqual(0, Exec(SampleProjectDirectory, pathToAppHost, "")); + } + + /// + /// Cleans the sample project's artifacts for a specific configuration and target runtime. + /// This method is called at the start of each test method to work around bugs around some up-to-date checks + /// Causing certain targets to not run and effectively corrupting the build output. + /// + /// The configuration for which the output is cleaned. + /// The RID for which the output is cleaned. + private void CleanSampleProject(Configuration configuration, RID rid) + { + Exec(SampleProjectDirectory, "dotnet", $"clean -c {configuration} {ToOption(rid)}"); + } + + /// + /// Builds the sample project with a specific configuration and target runtime. + /// + /// The configuration to use to build the project. + /// The RID to use to build the project. + private void BuildSampleProject(Configuration configuration, RID rid) + { + Exec(SampleProjectDirectory, "dotnet", $"build -c {configuration} {ToOption(rid)}"); + } + + /// + /// Executes a specified process from the command line and returns the exit code. + /// + /// The working directory to execute the process. + /// The target file path for the process to execute. + /// The arguments to invoke the process. + /// The exit code for the executed process. + private static int Exec(string workingDirectory, string filePath, string arguments) + { + ProcessStartInfo startInfo = new() + { + UseShellExecute = true, + CreateNoWindow = true, + WindowStyle = ProcessWindowStyle.Hidden, + FileName = filePath, + Arguments = arguments, + WorkingDirectory = workingDirectory + }; + + using Process process = Process.Start(startInfo)!; + + process.WaitForExit(); + + return process.ExitCode; + } + + /// + /// Gets a text representation of the command line argument for the given . + /// + /// The input value. + /// A text representation for . + private static string ToOption(RID rid) => rid switch + { + RID.None => "", + RID.Win_x64 => "-r win-x64", + _ => throw new InvalidEnumArgumentException(nameof(rid), (int)rid, typeof(RID)) + }; + + /// + /// Gets a text representation of the command line argument for the given . + /// + /// The input value. + /// A text representation for . + private static string ToOption(PublishMode publishMode) => publishMode switch + { + PublishMode.FrameworkDependent => "--self-contained false", + PublishMode.SelfContained => "--self-contained true", + _ => throw new InvalidEnumArgumentException(nameof(publishMode), (int)publishMode, typeof(PublishMode)) + }; + + /// + /// Gets a text representation of the command line argument for the given . + /// + /// The input value. + /// A text representation for . + private static string ToOption(DeploymentMode deploymentMode) => deploymentMode switch + { + DeploymentMode.Multiassembly => "/p:PublishSingleFile=false", + DeploymentMode.SingleFile => "/p:PublishSingleFile=true", + _ => throw new InvalidEnumArgumentException(nameof(deploymentMode), (int)deploymentMode, typeof(DeploymentMode)) + }; + + /// + /// Gets a text representation of the command line argument for the given . + /// + /// The input value. + /// A text representation for . + private static string ToOption(NativeLibrariesDeploymentMode deploymentMode) => deploymentMode switch + { + NativeLibrariesDeploymentMode.NotApplicable => "", + NativeLibrariesDeploymentMode.CopyToApplicationDirectory => "/p:IncludeNativeLibrariesForSelfExtract=false", + NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory => "/p:IncludeNativeLibrariesForSelfExtract=true", + _ => throw new InvalidEnumArgumentException(nameof(deploymentMode), (int)deploymentMode, typeof(NativeLibrariesDeploymentMode)) + }; + + /// + /// Gets a text representation of the build folder for the given . + /// + /// The input value. + /// A text representation for . + private static string ToDirectory(RID rid) => rid switch + { + RID.None => "", + RID.Win_x64 => "win-x64", + _ => throw new InvalidEnumArgumentException(nameof(rid), (int)rid, typeof(RID)) + }; +} + +/// +/// A build configuration. +/// +public enum Configuration +{ + Debug, + Release +} + +/// +/// A runtime identifier. +/// +public enum RID +{ + None, + Win_x64 +} + +/// +/// Indicates how should the application carry the framework with itself. +/// +public enum PublishMode +{ + FrameworkDependent, + SelfContained +} + +/// +/// Indicates how should the application be packaged. Notably, these tests employ .NET 6 style SingleFile, +/// aka SuperHost. It does not affect native libraries packaging in .NET 6, but may in the future. +/// +public enum DeploymentMode +{ + Multiassembly, + SingleFile +} + +/// +/// Indicates the deployment mode for application's native dependencies. +/// Not applicable to multiassembly deployment mode. +/// +public enum NativeLibrariesDeploymentMode +{ + NotApplicable, + ExtractToTemporaryDirectory, + CopyToApplicationDirectory +} \ No newline at end of file diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs index 52100812..d990e218 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs @@ -1,30 +1,24 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.ComponentModel; -using System.Diagnostics; +using System.Diagnostics; using System.IO; - -[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.ClassLevel)] +using ComputeSharp.Tests.NativeLibrariesResolver.Helpers; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ComputeSharp.Tests.NativeLibrariesResolver; [TestClass] -public class NativeLibrariesResolverTests +public class DynamicNativeLibrariesResolverTests : NativeLibrariesResolverTestsBase { + /// + protected override string SampleProjectName => "ComputeSharp.Dynamic.NuGet"; + /// /// Performs static initialization for the assembly before any unit tests are run. /// /// The for the test runner instance in use. - [AssemblyInitialize] - public static void Initialize(TestContext _) + [ClassInitialize] + public static void InitializeDynamicDependencies(TestContext _) { - string path = Path.GetDirectoryName(typeof(NativeLibrariesResolverTests).Assembly.Location)!; - - while (Path.GetFileName(path) is not "tests") - { - path = Path.GetDirectoryName(path)!; - } - - SampleProjectDirectory = Path.Combine(path, "ComputeSharp.Dynamic.NuGet"); + string path = Path.GetDirectoryName(typeof(DynamicNativeLibrariesResolverTests).Assembly.Location)!; while (Path.GetFileName(path) is not "ComputeSharp") { @@ -40,259 +34,4 @@ public class NativeLibrariesResolverTests Process.Start("dotnet", $"pack {packagingProjectPath} -c Release").WaitForExit(); Process.Start("dotnet", $"pack {dynamicPackagingProjectPath} -c Release").WaitForExit(); } - - /// - /// Gets the directory of the ComputeSharp.Dynamic.NuGet project. - /// - private static string? SampleProjectDirectory { get; set; } - - [TestMethod] - [DataRow(Configuration.Debug, RID.None)] - [DataRow(Configuration.Debug, RID.Win_x64)] - [DataRow(Configuration.Release, RID.None)] - [DataRow(Configuration.Release, RID.Win_x64)] - public void DotnetRunWorks(Configuration configuration, RID rid) - { - CleanSampleProject(configuration, rid); - - Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", $"run -c {configuration} -f net6.0 {ToOption(rid)}")); - } - - [TestMethod] - [DataRow(Configuration.Debug, RID.None)] - [DataRow(Configuration.Debug, RID.Win_x64)] - [DataRow(Configuration.Release, RID.None)] - [DataRow(Configuration.Release, RID.Win_x64)] - public void DotnetBuildWithRunningDotnetHostFromProjectDirectoryWorks(Configuration configuration, RID rid) - { - CleanSampleProject(configuration, rid); - BuildSampleProject(configuration, rid); - - string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.dll"); - - Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", realtivePathToDll)); - } - - [TestMethod] - [DataRow(Configuration.Debug, RID.None)] - [DataRow(Configuration.Debug, RID.Win_x64)] - [DataRow(Configuration.Release, RID.None)] - [DataRow(Configuration.Release, RID.Win_x64)] - public void DotnetBuildWithRunningDotnetHostDirectlyWorks(Configuration configuration, RID rid) - { - CleanSampleProject(configuration, rid); - BuildSampleProject(configuration, rid); - - string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - - Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.Dynamic.NuGet.dll")); - } - - [TestMethod] - [DataRow(Configuration.Debug, RID.None)] - [DataRow(Configuration.Debug, RID.Win_x64)] - [DataRow(Configuration.Release, RID.None)] - [DataRow(Configuration.Release, RID.Win_x64)] - public void DotnetBuildWithRunningAppHostFromProjectDirectoryWorks(Configuration configuration, RID rid) - { - CleanSampleProject(configuration, rid); - BuildSampleProject(configuration, rid); - - string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.exe"); - - Assert.AreEqual(0, Exec(SampleProjectDirectory!, relativePathToAppHost, "")); - } - - [TestMethod] - [DataRow(Configuration.Debug, RID.None)] - [DataRow(Configuration.Debug, RID.Win_x64)] - [DataRow(Configuration.Release, RID.None)] - [DataRow(Configuration.Release, RID.Win_x64)] - public void DotnetBuildWithRunningAppHostDirectlyWorks(Configuration configuration, RID rid) - { - CleanSampleProject(configuration, rid); - BuildSampleProject(configuration, rid); - - string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}"); - - Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.Dynamic.NuGet.exe", "")); - } - - - [TestMethod] - [DataRow(PublishMode.SelfContained, DeploymentMode.Multiassembly, NativeLibrariesDeploymentMode.NotApplicable)] - [DataRow(PublishMode.FrameworkDependent, DeploymentMode.Multiassembly, NativeLibrariesDeploymentMode.NotApplicable)] - [DataRow(PublishMode.SelfContained, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.CopyToApplicationDirectory)] - [DataRow(PublishMode.SelfContained, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory)] - [DataRow(PublishMode.FrameworkDependent, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.CopyToApplicationDirectory)] - [DataRow(PublishMode.FrameworkDependent, DeploymentMode.SingleFile, NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory)] - public void DotnetPublishWorks(PublishMode publishMode, DeploymentMode deploymentMode, NativeLibrariesDeploymentMode nativeLibsDeploymentMode) - { - // Publishing without specifying a RID is not supported. - // Furthermore, only publishing in Release mode is tested. - CleanSampleProject(Configuration.Release, RID.Win_x64); - - Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl"); - - string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Dynamic.NuGet.exe"); - - Assert.AreEqual(0, Exec(SampleProjectDirectory!, pathToAppHost, "")); - } - - /// - /// Cleans the sample project's artifacts for a specific configuration and target runtime. - /// This method is called at the start of each test method to work around bugs around some up-to-date checks - /// Causing certain targets to not run and effectively corrupting the build output. - /// - /// The configuration for which the output is cleaned. - /// The RID for which the output is cleaned. - private static void CleanSampleProject(Configuration configuration, RID rid) - { - Exec(SampleProjectDirectory!, "dotnet", $"clean -c {configuration} {ToOption(rid)}"); - } - - /// - /// Builds the sample project with a specific configuration and target runtime. - /// - /// The configuration to use to build the project. - /// The RID to use to build the project. - private static void BuildSampleProject(Configuration configuration, RID rid) - { - Exec(SampleProjectDirectory!, "dotnet", $"build -c {configuration} {ToOption(rid)}"); - } - - /// - /// Executes a specified process from the command line and returns the exit code. - /// - /// The working directory to execute the process. - /// The target file path for the process to execute. - /// The arguments to invoke the process. - /// The exit code for the executed process. - private static int Exec(string workingDirectory, string filePath, string arguments) - { - ProcessStartInfo startInfo = new() - { - UseShellExecute = true, - CreateNoWindow = true, - WindowStyle = ProcessWindowStyle.Hidden, - FileName = filePath, - Arguments = arguments, - WorkingDirectory = workingDirectory - }; - - using Process process = Process.Start(startInfo)!; - - process.WaitForExit(); - - return process.ExitCode; - } - - /// - /// Gets a text representation of the command line argument for the given . - /// - /// The input value. - /// A text representation for . - private static string ToOption(RID rid) => rid switch - { - RID.None => "", - RID.Win_x64 => "-r win-x64", - _ => throw new InvalidEnumArgumentException(nameof(rid), (int)rid, typeof(RID)) - }; - - /// - /// Gets a text representation of the command line argument for the given . - /// - /// The input value. - /// A text representation for . - private static string ToOption(PublishMode publishMode) => publishMode switch - { - PublishMode.FrameworkDependent => "--self-contained false", - PublishMode.SelfContained => "--self-contained true", - _ => throw new InvalidEnumArgumentException(nameof(publishMode), (int)publishMode, typeof(PublishMode)) - }; - - /// - /// Gets a text representation of the command line argument for the given . - /// - /// The input value. - /// A text representation for . - private static string ToOption(DeploymentMode deploymentMode) => deploymentMode switch - { - DeploymentMode.Multiassembly => "/p:PublishSingleFile=false", - DeploymentMode.SingleFile => "/p:PublishSingleFile=true", - _ => throw new InvalidEnumArgumentException(nameof(deploymentMode), (int)deploymentMode, typeof(DeploymentMode)) - }; - - /// - /// Gets a text representation of the command line argument for the given . - /// - /// The input value. - /// A text representation for . - private static string ToOption(NativeLibrariesDeploymentMode deploymentMode) => deploymentMode switch - { - NativeLibrariesDeploymentMode.NotApplicable => "", - NativeLibrariesDeploymentMode.CopyToApplicationDirectory => "/p:IncludeNativeLibrariesForSelfExtract=false", - NativeLibrariesDeploymentMode.ExtractToTemporaryDirectory => "/p:IncludeNativeLibrariesForSelfExtract=true", - _ => throw new InvalidEnumArgumentException(nameof(deploymentMode), (int)deploymentMode, typeof(NativeLibrariesDeploymentMode)) - }; - - /// - /// Gets a text representation of the build folder for the given . - /// - /// The input value. - /// A text representation for . - private static string ToDirectory(RID rid) => rid switch - { - RID.None => "", - RID.Win_x64 => "win-x64", - _ => throw new InvalidEnumArgumentException(nameof(rid), (int)rid, typeof(RID)) - }; - - /// - /// A build configuration. - /// - public enum Configuration - { - Debug, - Release - } - - /// - /// A runtime identifier. - /// - public enum RID - { - None, - Win_x64 - } - - /// - /// Indicates how should the application carry the framework with itself. - /// - public enum PublishMode - { - FrameworkDependent, - SelfContained - } - - /// - /// Indicates how should the application be packaged. Notably, these tests employ .NET 6 style SingleFile, - /// aka SuperHost. It does not affect native libraries packaging in .NET 6, but may in the future. - /// - public enum DeploymentMode - { - Multiassembly, - SingleFile - } - - /// - /// Indicates the deployment mode for application's native dependencies. - /// Not applicable to multiassembly deployment mode. - /// - public enum NativeLibrariesDeploymentMode - { - NotApplicable, - ExtractToTemporaryDirectory, - CopyToApplicationDirectory - } } diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/Properties/AssemblyInfo.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..6a076669 --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/Properties/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +[assembly: DoNotParallelize] \ No newline at end of file From fab0256b5e6808a0c8c20e099551262c34477d40 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 18:34:44 +0200 Subject: [PATCH 37/38] Enable native libraries tests for ComputeSharp.Pix --- ...=> DynamicNativeLibrariesResolverTests.cs} | 0 .../PixNativeLibrariesResolverTests.cs | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+) rename tests/ComputeSharp.Tests.NativeLibrariesResolver/{NativeLibrariesResolverTests.cs => DynamicNativeLibrariesResolverTests.cs} (100%) create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/PixNativeLibrariesResolverTests.cs diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/DynamicNativeLibrariesResolverTests.cs similarity index 100% rename from tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs rename to tests/ComputeSharp.Tests.NativeLibrariesResolver/DynamicNativeLibrariesResolverTests.cs diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/PixNativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/PixNativeLibrariesResolverTests.cs new file mode 100644 index 00000000..9624c1c4 --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/PixNativeLibrariesResolverTests.cs @@ -0,0 +1,37 @@ +using System.Diagnostics; +using System.IO; +using ComputeSharp.Tests.NativeLibrariesResolver.Helpers; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ComputeSharp.Tests.NativeLibrariesResolver; + +[TestClass] +public class PixNativeLibrariesResolverTests : NativeLibrariesResolverTestsBase +{ + /// + protected override string SampleProjectName => "ComputeSharp.Pix.NuGet"; + + /// + /// Performs static initialization for the assembly before any unit tests are run. + /// + /// The for the test runner instance in use. + [ClassInitialize] + public static void InitializeDynamicDependencies(TestContext _) + { + string path = Path.GetDirectoryName(typeof(PixNativeLibrariesResolverTests).Assembly.Location)!; + + while (Path.GetFileName(path) is not "ComputeSharp") + { + path = Path.GetDirectoryName(path)!; + } + + string corePackagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Core", "ComputeSharp.Core.msbuildproj"); + string packagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Package", "ComputeSharp.Package.msbuildproj"); + string pixPackagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Pix.Package", "ComputeSharp.Pix.Package.msbuildproj"); + + // Run dotnet pack and on the packaging projects, to ensure the local NuGet packages are available + Process.Start("dotnet", $"pack {corePackagingProjectPath} -c Release").WaitForExit(); + Process.Start("dotnet", $"pack {packagingProjectPath} -c Release").WaitForExit(); + Process.Start("dotnet", $"pack {pixPackagingProjectPath} -c Release").WaitForExit(); + } +} From 5dcf68d971fbf45545421c99bfaf4b03d274fac2 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 25 Jun 2022 18:36:07 +0200 Subject: [PATCH 38/38] Enable publishing tests for ComputeSharp project --- .../NativeLibrariesResolverTests.cs | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs new file mode 100644 index 00000000..6e8afe8c --- /dev/null +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/NativeLibrariesResolverTests.cs @@ -0,0 +1,35 @@ +using System.Diagnostics; +using System.IO; +using ComputeSharp.Tests.NativeLibrariesResolver.Helpers; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ComputeSharp.Tests.NativeLibrariesResolver; + +[TestClass] +public class NativeLibrariesResolverTests : NativeLibrariesResolverTestsBase +{ + /// + protected override string SampleProjectName => "ComputeSharp.NuGet"; + + /// + /// Performs static initialization for the assembly before any unit tests are run. + /// + /// The for the test runner instance in use. + [ClassInitialize] + public static void InitializeDynamicDependencies(TestContext _) + { + string path = Path.GetDirectoryName(typeof(DynamicNativeLibrariesResolverTests).Assembly.Location)!; + + while (Path.GetFileName(path) is not "ComputeSharp") + { + path = Path.GetDirectoryName(path)!; + } + + string corePackagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Core", "ComputeSharp.Core.msbuildproj"); + string packagingProjectPath = Path.Combine(path, "src", "ComputeSharp.Package", "ComputeSharp.Package.msbuildproj"); + + // Run dotnet pack and on the packaging projects, to ensure the local NuGet packages are available + Process.Start("dotnet", $"pack {corePackagingProjectPath} -c Release").WaitForExit(); + Process.Start("dotnet", $"pack {packagingProjectPath} -c Release").WaitForExit(); + } +}