From 484f19c313affc1501b3dec601111a87e9a8f137 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 25 Dec 2023 22:52:39 +0100 Subject: [PATCH 1/2] Use CRLF in all T4 files (.gitattributes) --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitattributes b/.gitattributes index 11c80bd7..5d688492 100644 --- a/.gitattributes +++ b/.gitattributes @@ -29,6 +29,12 @@ *.txt text eol=lf *.yml text eol=lf +# T4 files need CRLF to be processed correctly. When using LF, the T4 +# generator will produce unwanted newlines in the output files. The +# same fix for this is also present in the .editorconfig file. +*.tt text eol=crlf +*.ttinclude text eol=crlf + # Images *.png binary *.jpg binary From ba8567285479ddc4eef534523c4b635e53e91a00 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 25 Dec 2023 23:00:05 +0100 Subject: [PATCH 2/2] Tweak XML docs in InteropServices APIs --- .../Graphics/Interop/InteropServices.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ComputeSharp/Graphics/Interop/InteropServices.cs b/src/ComputeSharp/Graphics/Interop/InteropServices.cs index 2d94b2b0..c91248b2 100644 --- a/src/ComputeSharp/Graphics/Interop/InteropServices.cs +++ b/src/ComputeSharp/Graphics/Interop/InteropServices.cs @@ -174,7 +174,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Device(GraphicsDevice device, Guid* riid, void** ppvObject) @@ -194,7 +194,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(Buffer buffer, Guid* riid, void** ppvObject) @@ -215,7 +215,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(Texture1D texture, Guid* riid, void** ppvObject) @@ -236,7 +236,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(Texture2D texture, Guid* riid, void** ppvObject) @@ -257,7 +257,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(Texture3D texture, Guid* riid, void** ppvObject) @@ -278,7 +278,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(TransferBuffer buffer, Guid* riid, void** ppvObject) @@ -299,7 +299,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(TransferTexture2D texture, Guid* riid, void** ppvObject) @@ -320,7 +320,7 @@ public static unsafe class InteropServices /// The address of a pointer to an interface with the IID specified in . /// /// S_OK if the interface is supported, and E_NOINTERFACE otherwise. - /// If ppvObject (the address) is nullptr, then this method returns E_POINTER. + /// If (the address) is , then this method returns E_POINTER. /// /// The instance has been disposed. public static int TryGetID3D12Resource(TransferTexture3D texture, Guid* riid, void** ppvObject)