// ------------------------------------------------------------------------------
// <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="ID3D12GBVDiagnostics"]/*' />
/// <unmanaged>ID3D12GBVDiagnostics</unmanaged>
[Guid("597985ab-9b75-4dbb-be23-0761195bebee")]
[NativeTypeName("struct ID3D12GBVDiagnostics : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D12GBVDiagnostics : ID3D12GBVDiagnostics.Interface, INativeGuid
{
	public static ref readonly Guid IID_ID3D12GBVDiagnostics
	{
		[MethodImpl(MethodImplOptions.AggressiveInlining)]
		get
		{
			ReadOnlySpan<byte> data = new byte[] {
				0xAB, 0x85, 0x79, 0x59,
				0x75, 0x9B,
				0xBB, 0x4D,
				0xBE,
				0x23,
				0x07,
				0x61,
				0x19,
				0x5B,
				0xEB,
				0xEE
			};

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

	static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12GBVDiagnostics));

	public void** lpVtbl;

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

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

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

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GetGBVEntireSubresourceStatesData"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(3)]
	public HResult GetGBVEntireSubresourceStatesData(ID3D12Resource* pResource, int* pData, uint DataSize)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, ID3D12Resource*, int*, uint, int>)(lpVtbl[3]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pData, DataSize);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GetGBVSubresourceState"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public HResult GetGBVSubresourceState(ID3D12Resource* pResource, uint Subresource, int* pData)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, ID3D12Resource*, uint, int*, int>)(lpVtbl[4]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, Subresource, pData);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GetGBVResourceUniformState"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public HResult GetGBVResourceUniformState(ID3D12Resource* pResource, int* pData)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, ID3D12Resource*, int*, int>)(lpVtbl[5]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pData);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GetGBVResourceInfo"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public HResult GetGBVResourceInfo(ID3D12Resource* pResource, ResourceDescription* pResourceDesc, uint* pResourceHash, uint* pSubresourceStatesByteOffset)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, ID3D12Resource*, ResourceDescription*, uint*, uint*, int>)(lpVtbl[6]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this), pResource, pResourceDesc, pResourceHash, pSubresourceStatesByteOffset);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GBVReserved0"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public void GBVReserved0()
	{
		((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, void>)(lpVtbl[7]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this));
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12GBVDiagnostics::GBVReserved1"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(8)]
	public void GBVReserved1()
	{
		((delegate* unmanaged[MemberFunction]<ID3D12GBVDiagnostics*, void>)(lpVtbl[8]))((ID3D12GBVDiagnostics*)Unsafe.AsPointer(ref this));
	}

	public interface Interface : IUnknown.Interface
	{
		[VtblIndex(3)]
		HResult GetGBVEntireSubresourceStatesData(ID3D12Resource* pResource, int* pData, uint DataSize);

		[VtblIndex(4)]
		HResult GetGBVSubresourceState(ID3D12Resource* pResource, uint Subresource, int* pData);

		[VtblIndex(5)]
		HResult GetGBVResourceUniformState(ID3D12Resource* pResource, int* pData);

		[VtblIndex(6)]
		HResult GetGBVResourceInfo(ID3D12Resource* pResource, ResourceDescription* pResourceDesc, uint* pResourceHash, uint* pSubresourceStatesByteOffset);

		[VtblIndex(7)]
		void GBVReserved0();

		[VtblIndex(8)]
		void GBVReserved1();
	}
}

