// ------------------------------------------------------------------------------
// <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="ID3D12Debug6"]/*' />
/// <unmanaged>ID3D12Debug6</unmanaged>
[Guid("82a816d6-5d01-4157-97d0-4975463fd1ed")]
[NativeTypeName("struct ID3D12Debug6 : ID3D12Debug5")]
[NativeInheritance("ID3D12Debug5")]
public unsafe partial struct ID3D12Debug6 : ID3D12Debug6.Interface, INativeGuid
{
	public static ref readonly Guid IID_ID3D12Debug6
	{
		[MethodImpl(MethodImplOptions.AggressiveInlining)]
		get
		{
			ReadOnlySpan<byte> data = new byte[] {
				0xD6, 0x16, 0xA8, 0x82,
				0x01, 0x5D,
				0x57, 0x41,
				0x97,
				0xD0,
				0x49,
				0x75,
				0x46,
				0x3F,
				0xD1,
				0xED
			};

			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_ID3D12Debug6));
#else
	public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12Debug6));
#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<ID3D12Debug6*, Guid*, void**, int>)(lpVtbl[0]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), riid, ppvObject);
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12Debug6*, Guid*, void**, int>)(lpVtbl[0]))((ID3D12Debug6*)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<ID3D12Debug6*, uint>)(lpVtbl[1]))((ID3D12Debug6*)Unsafe.AsPointer(ref this));
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12Debug6*, uint>)(lpVtbl[1]))((ID3D12Debug6*)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<ID3D12Debug6*, uint>)(lpVtbl[2]))((ID3D12Debug6*)Unsafe.AsPointer(ref this));
#else
		return ((delegate* unmanaged[Stdcall]<ID3D12Debug6*, uint>)(lpVtbl[2]))((ID3D12Debug6*)Unsafe.AsPointer(ref this));
#endif
	}

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

	/// <inheritdoc cref="ID3D12Debug3.SetEnableGPUBasedValidation" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public void SetEnableGPUBasedValidation(Bool32 Enable)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12Debug6*, Bool32, void>)(lpVtbl[4]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#else
		((delegate* unmanaged[Stdcall]<ID3D12Debug6*, Bool32, void>)(lpVtbl[4]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#endif
	}

	/// <inheritdoc cref="ID3D12Debug3.SetEnableSynchronizedCommandQueueValidation" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public void SetEnableSynchronizedCommandQueueValidation(Bool32 Enable)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12Debug6*, Bool32, void>)(lpVtbl[5]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#else
		((delegate* unmanaged[Stdcall]<ID3D12Debug6*, Bool32, void>)(lpVtbl[5]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#endif
	}

	/// <inheritdoc cref="ID3D12Debug3.SetGPUBasedValidationFlags" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public void SetGPUBasedValidationFlags(GpuBasedValidationFlags Flags)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12Debug6*, GpuBasedValidationFlags, void>)(lpVtbl[6]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Flags);
#else
		((delegate* unmanaged[Stdcall]<ID3D12Debug6*, GpuBasedValidationFlags, void>)(lpVtbl[6]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Flags);
#endif
	}

	/// <inheritdoc cref="ID3D12Debug4.DisableDebugLayer" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public void DisableDebugLayer()
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12Debug6*, void>)(lpVtbl[7]))((ID3D12Debug6*)Unsafe.AsPointer(ref this));
#else
		((delegate* unmanaged[Stdcall]<ID3D12Debug6*, void>)(lpVtbl[7]))((ID3D12Debug6*)Unsafe.AsPointer(ref this));
#endif
	}

	/// <inheritdoc cref="ID3D12Debug5.SetEnableAutoName" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(8)]
	public void SetEnableAutoName(Bool32 Enable)
	{
#if NET6_0_OR_GREATER
		((delegate* unmanaged<ID3D12Debug6*, Bool32, void>)(lpVtbl[8]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#else
		((delegate* unmanaged[Stdcall]<ID3D12Debug6*, Bool32, void>)(lpVtbl[8]))((ID3D12Debug6*)Unsafe.AsPointer(ref this), Enable);
#endif
	}

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

	public interface Interface : ID3D12Debug5.Interface
	{
		[VtblIndex(9)]
		void SetForceLegacyBarrierValidation(Bool32 Enable);
	}
}

