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 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)