// ------------------------------------------------------------------------------
// <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="ID3D12StateObjectProperties1"]/*' />
/// <unmanaged>ID3D12StateObjectProperties1</unmanaged>
[Guid("460caac7-1d24-446a-a184-ca67db494138")]
[NativeTypeName("struct ID3D12StateObjectProperties1 : ID3D12StateObjectProperties")]
[NativeInheritance("ID3D12StateObjectProperties")]
public unsafe partial struct ID3D12StateObjectProperties1 : ID3D12StateObjectProperties1.Interface, INativeGuid
{
	public static ref readonly Guid IID_ID3D12StateObjectProperties1
	{
		[MethodImpl(MethodImplOptions.AggressiveInlining)]
		get
		{
			ReadOnlySpan<byte> data = new byte[] {
				0xC7, 0xAA, 0x0C, 0x46,
				0x24, 0x1D,
				0x6A, 0x44,
				0xA1,
				0x84,
				0xCA,
				0x67,
				0xDB,
				0x49,
				0x41,
				0x38
			};

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

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

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

	/// <inheritdoc cref="ID3D12StateObjectProperties.GetShaderIdentifier" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(3)]
	public void* GetShaderIdentifier(char* pExportName)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12StateObjectProperties1*, char*, void*>)(lpVtbl[3]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), pExportName);
	}

	/// <inheritdoc cref="ID3D12StateObjectProperties.GetShaderStackSize" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(4)]
	public ulong GetShaderStackSize(char* pExportName)
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12StateObjectProperties1*, char*, ulong>)(lpVtbl[4]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), pExportName);
	}

	/// <inheritdoc cref="ID3D12StateObjectProperties.GetPipelineStackSize" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(5)]
	public ulong GetPipelineStackSize()
	{
		return ((delegate* unmanaged[MemberFunction]<ID3D12StateObjectProperties1*, ulong>)(lpVtbl[5]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this));
	}

	/// <inheritdoc cref="ID3D12StateObjectProperties.SetPipelineStackSize" />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(6)]
	public void SetPipelineStackSize(ulong PipelineStackSizeInBytes)
	{
		((delegate* unmanaged[MemberFunction]<ID3D12StateObjectProperties1*, ulong, void>)(lpVtbl[6]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), PipelineStackSizeInBytes);
	}

	/// <include file='../Direct3D12.xml' path='doc/member[@name="ID3D12StateObjectProperties1::GetProgramIdentifier"]/*' />
	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	[VtblIndex(7)]
	public ProgramIdentifier GetProgramIdentifier(char* pProgramName)
	{
		ProgramIdentifier result;
		return *((delegate* unmanaged[MemberFunction]<ID3D12StateObjectProperties1*, ProgramIdentifier*, char*, ProgramIdentifier*>)(lpVtbl[7]))((ID3D12StateObjectProperties1*)Unsafe.AsPointer(ref this), &result, pProgramName);
	}

	public interface Interface : ID3D12StateObjectProperties.Interface
	{
		[VtblIndex(7)]
		ProgramIdentifier GetProgramIdentifier(char* pProgramName);
	}
}

