// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

namespace Win32.Graphics.Direct3D12;

/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12DeviceRemovedExtendedDataSettings2"]/*' />
/// <unmanaged>ID3D12DeviceRemovedExtendedDataSettings2</unmanaged>
[Guid("61552388-01ab-4008-a436-83db189566ea")]
[NativeTypeName("struct ID3D12DeviceRemovedExtendedDataSettings2 : ID3D12DeviceRemovedExtendedDataSettings1")]
[NativeInheritance("ID3D12DeviceRemovedExtendedDataSettings1")]
public unsafe partial struct ID3D12DeviceRemovedExtendedDataSettings2 : ID3D12DeviceRemovedExtendedDataSettings2.Interface, INativeGuid
{
	public static ref readonly Guid IID_ID3D12DeviceRemovedExtendedDataSettings2
	{
		[MethodImpl(MethodImplOptions.AggressiveInlining)]
		get
		{
			ReadOnlySpan<byte> data = new byte[] {
				0x88, 0x23, 0x55, 0x61,
				0xAB, 0x01,
				0x08, 0x40,
				0xA4,
				0x36,
				0x83,
				0xDB,
				0x18,
				0x95,
				0x66,
				0xEA
			};

			Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
			return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
		}
	}

#if NET6_0_OR_GREATER
	static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings2));
#else
	public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12DeviceRemovedExtendedDataSettings2));
#endif

	public void** lpVtbl;

	/// <inheritdoc cref="IUnknown.QueryInterface" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(0)]
	public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
	{
#if NET6_0_OR_GREATER
		return ((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, Guid*, void**, int>)(lpVtbl[0]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), riid, ppvObject);
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, Guid*, void**, int>)(lpVtbl[0]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), riid, ppvObject);
#endif
	}

	/// <inheritdoc cref="IUnknown.AddRef" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(1)]
	[return: NativeTypeName("ULONG")]
	public uint AddRef()
	{
#if NET6_0_OR_GREATER
		return ((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, uint>)(lpVtbl[1]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this));
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, uint>)(lpVtbl[1]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this));
#endif
	}

	/// <inheritdoc cref="IUnknown.Release" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(2)]
	[return: NativeTypeName("ULONG")]
	public uint Release()
	{
#if NET6_0_OR_GREATER
		return ((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, uint>)(lpVtbl[2]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this));
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, uint>)(lpVtbl[2]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this));
#endif
	}

	/// <inheritdoc cref="ID3D12DeviceRemovedExtendedDataSettings.SetAutoBreadcrumbsEnablement" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(3)]
	public void SetAutoBreadcrumbsEnablement(DredEnablement Enablement)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#else
		((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[3]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#endif
	}

	/// <inheritdoc cref="ID3D12DeviceRemovedExtendedDataSettings.SetPageFaultEnablement" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public void SetPageFaultEnablement(DredEnablement Enablement)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#else
		((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[4]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#endif
	}

	/// <inheritdoc cref="ID3D12DeviceRemovedExtendedDataSettings.SetWatsonDumpEnablement" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public void SetWatsonDumpEnablement(DredEnablement Enablement)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#else
		((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[5]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#endif
	}

	/// <inheritdoc cref="ID3D12DeviceRemovedExtendedDataSettings1.SetBreadcrumbContextEnablement" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public void SetBreadcrumbContextEnablement(DredEnablement Enablement)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[6]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#else
		((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, DredEnablement, void>)(lpVtbl[6]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), Enablement);
#endif
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12DeviceRemovedExtendedDataSettings2::UseMarkersOnlyAutoBreadcrumbs"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public void UseMarkersOnlyAutoBreadcrumbs(Bool32 MarkersOnly)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12DeviceRemovedExtendedDataSettings2*, Bool32, void>)(lpVtbl[7]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), MarkersOnly);
#else
		((delegate* unmanaged[Stdcall]<ID3D12DeviceRemovedExtendedDataSettings2*, Bool32, void>)(lpVtbl[7]))((ID3D12DeviceRemovedExtendedDataSettings2*)Unsafe.AsPointer(ref this), MarkersOnly);
#endif
	}

	public interface Interface : ID3D12DeviceRemovedExtendedDataSettings1.Interface
	{
		[VtblIndex(7)]
		void UseMarkersOnlyAutoBreadcrumbs(Bool32 MarkersOnly);
	}
}

