Skip to content

Commit

Permalink
Merge pull request #369 from tannergooding/main
Browse files Browse the repository at this point in the history
Add a temporary obsolete attribute to help users identify where a break might exist
  • Loading branch information
tannergooding authored Dec 15, 2023
2 parents cbb5925 + 04daf75 commit 8140e84
Show file tree
Hide file tree
Showing 261 changed files with 526 additions and 4 deletions.
5 changes: 1 addition & 4 deletions generation/DirectX/d3dx12/d3dx12_barriers/generate.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ CD3DX12_BARRIER_GROUP.Base
CD3DX12_BARRIER_SUBRESOURCE_RANGE.Base
CD3DX12_BUFFER_BARRIER.Base
CD3DX12_GLOBAL_BARRIER.Base
CD3DX12_RESOURCE_BARRIER.Base
CD3DX12_RESOURCE_BARRIER.Aliasing(ID3D12Resource *, ID3D12Resource *):CD3DX12_RESOURCE_BARRIER
CD3DX12_RESOURCE_BARRIER.Transition(ID3D12Resource *, D3D12_RESOURCE_STATES, D3D12_RESOURCE_STATES, UINT, D3D12_RESOURCE_BARRIER_FLAGS):CD3DX12_RESOURCE_BARRIER
CD3DX12_RESOURCE_BARRIER.UAV(ID3D12Resource *):CD3DX12_RESOURCE_BARRIER
CD3DX12_RESOURCE_BARRIER
CD3DX12_TEXTURE_BARRIER.Base
--file
d3dx12-d3dx12_barriers.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -44,6 +45,7 @@ public partial struct DXGI_ADAPTER_DESC

/// <include file='_Description_e__FixedBuffer.xml' path='doc/member[@name="_Description_e__FixedBuffer"]/*' />
[InlineArray(128)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _Description_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -47,6 +48,7 @@ public partial struct DXGI_ADAPTER_DESC1

/// <include file='_Description_e__FixedBuffer.xml' path='doc/member[@name="_Description_e__FixedBuffer"]/*' />
[InlineArray(128)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _Description_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi.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 TerraFX.Interop.Windows;

Expand All @@ -29,6 +30,7 @@ public partial struct DXGI_OUTPUT_DESC

/// <include file='_DeviceName_e__FixedBuffer.xml' path='doc/member[@name="_DeviceName_e__FixedBuffer"]/*' />
[InlineArray(32)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _DeviceName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi1_2.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -53,6 +54,7 @@ public partial struct DXGI_ADAPTER_DESC2

/// <include file='_Description_e__FixedBuffer.xml' path='doc/member[@name="_Description_e__FixedBuffer"]/*' />
[InlineArray(128)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _Description_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi1_6.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -53,6 +54,7 @@ public partial struct DXGI_ADAPTER_DESC3

/// <include file='_Description_e__FixedBuffer.xml' path='doc/member[@name="_Description_e__FixedBuffer"]/*' />
[InlineArray(128)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _Description_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/dxgi1_6.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -60,6 +61,7 @@ public partial struct DXGI_OUTPUT_DESC1

/// <include file='_DeviceName_e__FixedBuffer.xml' path='doc/member[@name="_DeviceName_e__FixedBuffer"]/*' />
[InlineArray(32)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _DeviceName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ public partial struct DDDEVICEIDENTIFIER

/// <include file='_szDriver_e__FixedBuffer.xml' path='doc/member[@name="_szDriver_e__FixedBuffer"]/*' />
[InlineArray(512)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _szDriver_e__FixedBuffer
{
public sbyte e0;
}

/// <include file='_szDescription_e__FixedBuffer.xml' path='doc/member[@name="_szDescription_e__FixedBuffer"]/*' />
[InlineArray(512)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _szDescription_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ public partial struct DDDEVICEIDENTIFIER2

/// <include file='_szDriver_e__FixedBuffer.xml' path='doc/member[@name="_szDriver_e__FixedBuffer"]/*' />
[InlineArray(512)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _szDriver_e__FixedBuffer
{
public sbyte e0;
}

/// <include file='_szDescription_e__FixedBuffer.xml' path='doc/member[@name="_szDescription_e__FixedBuffer"]/*' />
[InlineArray(512)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _szDescription_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public unsafe partial struct DIACTIONFORMATA

/// <include file='_tszActionMap_e__FixedBuffer.xml' path='doc/member[@name="_tszActionMap_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszActionMap_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public unsafe partial struct DIACTIONFORMATW

/// <include file='_tszActionMap_e__FixedBuffer.xml' path='doc/member[@name="_tszActionMap_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszActionMap_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from um/dinput.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -47,6 +48,7 @@ public partial struct DIDEVICEIMAGEINFOA

/// <include file='_tszImagePath_e__FixedBuffer.xml' path='doc/member[@name="_tszImagePath_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszImagePath_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from um/dinput.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 TerraFX.Interop.Windows;

Expand Down Expand Up @@ -47,6 +48,7 @@ public partial struct DIDEVICEIMAGEINFOW

/// <include file='_tszImagePath_e__FixedBuffer.xml' path='doc/member[@name="_tszImagePath_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszImagePath_e__FixedBuffer
{
public char e0;
Expand Down
2 changes: 2 additions & 0 deletions sources/Interop/Windows/DirectX/um/dinput/DIDEVICEINSTANCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public partial struct DIDEVICEINSTANCE

/// <include file='_tszInstanceName_e__FixedBuffer.xml' path='doc/member[@name="_tszInstanceName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszInstanceName_e__FixedBuffer
{
public char e0;
}

/// <include file='_tszProductName_e__FixedBuffer.xml' path='doc/member[@name="_tszProductName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszProductName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public partial struct DIDEVICEINSTANCEA

/// <include file='_tszInstanceName_e__FixedBuffer.xml' path='doc/member[@name="_tszInstanceName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszInstanceName_e__FixedBuffer
{
public sbyte e0;
}

/// <include file='_tszProductName_e__FixedBuffer.xml' path='doc/member[@name="_tszProductName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszProductName_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ public partial struct DIDEVICEINSTANCE_DX3

/// <include file='_tszInstanceName_e__FixedBuffer.xml' path='doc/member[@name="_tszInstanceName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszInstanceName_e__FixedBuffer
{
public char e0;
}

/// <include file='_tszProductName_e__FixedBuffer.xml' path='doc/member[@name="_tszProductName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszProductName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ public partial struct DIDEVICEINSTANCE_DX3A

/// <include file='_tszInstanceName_e__FixedBuffer.xml' path='doc/member[@name="_tszInstanceName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszInstanceName_e__FixedBuffer
{
public sbyte e0;
}

/// <include file='_tszProductName_e__FixedBuffer.xml' path='doc/member[@name="_tszProductName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszProductName_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public partial struct DIDEVICEOBJECTINSTANCE

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public partial struct DIDEVICEOBJECTINSTANCEA

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public partial struct DIDEVICEOBJECTINSTANCE_DX3

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public partial struct DIDEVICEOBJECTINSTANCE_DX3A

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public sbyte e0;
Expand Down
1 change: 1 addition & 0 deletions sources/Interop/Windows/DirectX/um/dinput/DIEFFECTINFO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public partial struct DIEFFECTINFO

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public char e0;
Expand Down
1 change: 1 addition & 0 deletions sources/Interop/Windows/DirectX/um/dinput/DIEFFECTINFOA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public partial struct DIEFFECTINFOA

/// <include file='_tszName_e__FixedBuffer.xml' path='doc/member[@name="_tszName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _tszName_e__FixedBuffer
{
public sbyte e0;
Expand Down
1 change: 1 addition & 0 deletions sources/Interop/Windows/DirectX/um/dinput/DIFILEEFFECT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public unsafe partial struct DIFILEEFFECT

/// <include file='_szFriendlyName_e__FixedBuffer.xml' path='doc/member[@name="_szFriendlyName_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _szFriendlyName_e__FixedBuffer
{
public sbyte e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public partial struct DIPROPGUIDANDPATH

/// <include file='_wszPath_e__FixedBuffer.xml' path='doc/member[@name="_wszPath_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _wszPath_e__FixedBuffer
{
public char e0;
Expand Down
2 changes: 2 additions & 0 deletions sources/Interop/Windows/DirectX/um/dinput/DIPROPSTRING.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from um/dinput.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;

namespace TerraFX.Interop.DirectX;
Expand All @@ -19,6 +20,7 @@ public partial struct DIPROPSTRING

/// <include file='_wsz_e__FixedBuffer.xml' path='doc/member[@name="_wsz_e__FixedBuffer"]/*' />
[InlineArray(260)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _wsz_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public partial struct XAPO_REGISTRATION_PROPERTIES
/// <include file='_FriendlyName_e__FixedBuffer.xml' path='doc/member[@name="_FriendlyName_e__FixedBuffer"]/*' />
[StructLayout(LayoutKind.Sequential, Pack = 1)]
[InlineArray(256)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _FriendlyName_e__FixedBuffer
{
public char e0;
Expand All @@ -64,6 +65,7 @@ public partial struct _FriendlyName_e__FixedBuffer
/// <include file='_CopyrightInfo_e__FixedBuffer.xml' path='doc/member[@name="_CopyrightInfo_e__FixedBuffer"]/*' />
[StructLayout(LayoutKind.Sequential, Pack = 1)]
[InlineArray(256)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _CopyrightInfo_e__FixedBuffer
{
public char e0;
Expand Down
1 change: 1 addition & 0 deletions sources/Interop/Windows/TerraFX.Interop.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<!-- CS8981: The type name only contains lower-cased ascii characters -->
<!-- SYSLIB1054: Use LibraryImportAttribute instead of DllImportAttribute to generate p/invoke marshalling code at compile time. -->
<NoWarn>$(NoWarn);CA1003;CA1008;CA1024;CA1027;CA1028;CA1030;CA1034;CA1040;CA1041;CA1051;CA1069;CA1305;CA1401;CA1700;CA1707;CA1708;CA1711;CA1712;CA1715;CA1716;CA1720;CA1724;CA1815;CA2201;CA2217;CA2225;CS1591;CS8981;SYSLIB1054</NoWarn>
<NoWarn>$(NoWarn);CS0618</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/Iprtrmib.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;

namespace TerraFX.Interop.Windows;
Expand All @@ -28,6 +29,7 @@ public partial struct MIB_IPMCAST_SCOPE

/// <include file='_snNameBuffer_e__FixedBuffer.xml' path='doc/member[@name="_snNameBuffer_e__FixedBuffer"]/*' />
[InlineArray(256)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _snNameBuffer_e__FixedBuffer
{
public char e0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Ported from shared/ifdef.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;

namespace TerraFX.Interop.Windows;
Expand All @@ -19,6 +20,7 @@ public partial struct IF_COUNTED_STRING_LH

/// <include file='_String_e__FixedBuffer.xml' path='doc/member[@name="_String_e__FixedBuffer"]/*' />
[InlineArray(257)]
[Obsolete("Possible string represented as a fixed-sized buffer.")]
public partial struct _String_e__FixedBuffer
{
public char e0;
Expand Down
Loading

0 comments on commit 8140e84

Please sign in to comment.