// ------------------------------------------------------------------------------
// <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="ID3D12DeviceConfiguration1"]/*' />
/// <unmanaged>ID3D12DeviceConfiguration1</unmanaged>
[Guid("ed342442-6343-4e16-bb82-a3a577874e56")]
[NativeTypeName("struct ID3D12DeviceConfiguration1 : ID3D12DeviceConfiguration")]
[NativeInheritance("ID3D12DeviceConfiguration")]
public unsafe partial struct ID3D12DeviceConfiguration1 : ID3D12DeviceConfiguration1.Interface, INativeGuid
{
	public static ref readonly Guid IID_ID3D12DeviceConfiguration1
	{
		[MethodImpl(MethodImplOptions.AggressiveInlining)]
		get
		{
			ReadOnlySpan<byte> data = new byte[] {
				0x42, 0x24, 0x34, 0xED,
				0x43, 0x63,
				0x16, 0x4E,
				0xBB,
				0x82,
				0xA3,
				0xA5,
				0x77,
				0x87,
				0x4E,
				0x56
			};

			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_ID3D12DeviceConfiguration1));

	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]<ID3D12DeviceConfiguration1*, Guid*, void**, int>)(lpVtbl[0]))((ID3D12DeviceConfiguration1*)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]<ID3D12DeviceConfiguration1*, uint>)(lpVtbl[1]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this));
	}

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

	/// <inheritdoc cref="ID3D12DeviceConfiguration.GetDesc" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(3)]
	public DeviceConfigurationDescription GetDesc()
	{
		DeviceConfigurationDescription result;
		return *((delegate* unmanaged[MemberFunction]<ID3D12DeviceConfiguration1*, DeviceConfigurationDescription*, DeviceConfigurationDescription*>)(lpVtbl[3]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), &result);
	}

	/// <inheritdoc cref="ID3D12DeviceConfiguration.GetEnabledExperimentalFeatures" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public HResult GetEnabledExperimentalFeatures(Guid* pGuids, uint NumGuids)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12DeviceConfiguration1*, Guid*, uint, int>)(lpVtbl[4]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pGuids, NumGuids);
	}

	/// <inheritdoc cref="ID3D12DeviceConfiguration.SerializeVersionedRootSignature" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public HResult SerializeVersionedRootSignature(VersionedRootSignatureDescription* pDesc, Graphics.Direct3D.ID3DBlob** ppResult, Graphics.Direct3D.ID3DBlob** ppError)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12DeviceConfiguration1*, VersionedRootSignatureDescription*, Graphics.Direct3D.ID3DBlob**, Graphics.Direct3D.ID3DBlob**, int>)(lpVtbl[5]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pDesc, ppResult, ppError);
	}

	/// <inheritdoc cref="ID3D12DeviceConfiguration.CreateVersionedRootSignatureDeserializer" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public HResult CreateVersionedRootSignatureDeserializer(void* pBlob, nuint Size, Guid* riid, void** ppvDeserializer)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12DeviceConfiguration1*, void*, nuint, Guid*, void**, int>)(lpVtbl[6]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pBlob, Size, riid, ppvDeserializer);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12DeviceConfiguration1::CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public HResult CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(void* pLibraryBlob, nuint Size, char* RootSignatureSubobjectName, Guid* riid, void** ppvDeserializer)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12DeviceConfiguration1*, void*, nuint, char*, Guid*, void**, int>)(lpVtbl[7]))((ID3D12DeviceConfiguration1*)Unsafe.AsPointer(ref this), pLibraryBlob, Size, RootSignatureSubobjectName, riid, ppvDeserializer);
	}

	public interface Interface : ID3D12DeviceConfiguration.Interface
	{
		[VtblIndex(7)]
		HResult CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(void* pLibraryBlob, nuint Size, char* RootSignatureSubobjectName, Guid* riid, void** ppvDeserializer);
	}
}

