From 469f66475b7bc19bab89b01ddb6114c4c27efab0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 8 Nov 2023 01:49:41 +0100 Subject: [PATCH 1/2] Remove unused HSTRING_HEADER type --- .../ComputeSharp.Win32.D2D1.projitems | 1 - .../WinRT/winrt/hstring/HSTRING_HEADER.cs | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 src/ComputeSharp.Win32.D2D1/WinRT/winrt/hstring/HSTRING_HEADER.cs diff --git a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems index d286368a0..c05cbb172 100644 --- a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems +++ b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems @@ -74,6 +74,5 @@ - \ No newline at end of file diff --git a/src/ComputeSharp.Win32.D2D1/WinRT/winrt/hstring/HSTRING_HEADER.cs b/src/ComputeSharp.Win32.D2D1/WinRT/winrt/hstring/HSTRING_HEADER.cs deleted file mode 100644 index 353a65a3f..000000000 --- a/src/ComputeSharp.Win32.D2D1/WinRT/winrt/hstring/HSTRING_HEADER.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from winrt/hstring.h in the Windows SDK for Windows 10.0.22621.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace ComputeSharp.Win32; - -internal partial struct HSTRING_HEADER -{ - [NativeTypeName("union (anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/winrt/hstring.h:80:5)")] - public _Reserved_e__Union Reserved; - - public unsafe partial struct _Reserved_e__Union - { - internal fixed byte Reserved1[24]; - } -} \ No newline at end of file From 2e723d2a55ea8fd653ab8e29fdabf76bd0ee746a Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 8 Nov 2023 01:55:51 +0100 Subject: [PATCH 2/2] Remove unused IDirect3DDxgiInterfaceAccess type --- .../ComputeSharp.Win32.D2D1.projitems | 1 - .../IDirect3DDxgiInterfaceAccess.cs | 51 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 src/ComputeSharp.Win32.D2D1/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs diff --git a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems index c05cbb172..884dff140 100644 --- a/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems +++ b/src/ComputeSharp.Win32.D2D1/ComputeSharp.Win32.D2D1.projitems @@ -59,7 +59,6 @@ - diff --git a/src/ComputeSharp.Win32.D2D1/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs b/src/ComputeSharp.Win32.D2D1/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs deleted file mode 100644 index eec114cc4..000000000 --- a/src/ComputeSharp.Win32.D2D1/WinRT/um/windows.graphics.directx.direct3d11.interop/IDirect3DDxgiInterfaceAccess.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/windows.graphics.directx.direct3d11.interop.h in the Windows SDK for Windows 10.0.22621.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -namespace ComputeSharp.Win32; - -[Guid("A9B3D012-3DF2-4EE3-B8D1-8695F457D3C1")] -[NativeTypeName("struct IDirect3DDxgiInterfaceAccess : IUnknown")] -[NativeInheritance("IUnknown")] -internal unsafe partial struct IDirect3DDxgiInterfaceAccess -{ - public void** lpVtbl; - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(0)] - public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDirect3DDxgiInterfaceAccess*)Unsafe.AsPointer(ref this), riid, ppvObject); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(1)] - [return: NativeTypeName("ULONG")] - public uint AddRef() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDirect3DDxgiInterfaceAccess*)Unsafe.AsPointer(ref this)); - } - - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(2)] - [return: NativeTypeName("ULONG")] - public uint Release() - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDirect3DDxgiInterfaceAccess*)Unsafe.AsPointer(ref this)); - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - [VtblIndex(3)] - public HRESULT GetInterface([NativeTypeName("const IID &")] Guid* iid, void** p) - { - return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDirect3DDxgiInterfaceAccess*)Unsafe.AsPointer(ref this), iid, p); - } -} \ No newline at end of file