Bindings: Separate Direct3D12 bindings in new Vortice.Win32.Direct3D12 package

This commit is contained in:
Amer Koleci
2022-10-03 09:03:58 +02:00
parent c42e892e2d
commit 5825f5e73d
123 changed files with 12726 additions and 12689 deletions

View File

@@ -0,0 +1,69 @@
// ------------------------------------------------------------------------------
// <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="ID3D12ShaderReflectionConstantBuffer"]/*' />
/// <unmanaged>ID3D12ShaderReflectionConstantBuffer</unmanaged>
[Guid("c59598b4-48b3-4869-b9b1-b1618b14a8b7")]
public unsafe partial struct ID3D12ShaderReflectionConstantBuffer
{
public static ref readonly Guid IID_ID3D12ShaderReflectionConstantBuffer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xB4, 0x98, 0x95, 0xC5,
0xB3, 0x48,
0x69, 0x48,
0xB9,
0xB1,
0xB1,
0x61,
0x8B,
0x14,
0xA8,
0xB7
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID3D12ShaderReflectionConstantBuffer));
public void** lpVtbl;
/// <include file='Direct3D12.xml' path='doc/member[@name="ID3D12ShaderReflectionConstantBuffer::GetDesc"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(0)]
public HResult GetDesc(ShaderBufferDescription* pDesc)
{
return ((delegate* unmanaged[Stdcall]<ID3D12ShaderReflectionConstantBuffer*, ShaderBufferDescription*, int>)(lpVtbl[0]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), pDesc);
}
/// <include file='Direct3D12.xml' path='doc/member[@name="ID3D12ShaderReflectionConstantBuffer::GetVariableByIndex"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(1)]
public ID3D12ShaderReflectionVariable GetVariableByIndex(uint Index)
{
return ((delegate* unmanaged[Stdcall]<ID3D12ShaderReflectionConstantBuffer*, uint, ID3D12ShaderReflectionVariable>)(lpVtbl[1]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Index);
}
/// <include file='Direct3D12.xml' path='doc/member[@name="ID3D12ShaderReflectionConstantBuffer::GetVariableByName"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(2)]
public ID3D12ShaderReflectionVariable GetVariableByName(sbyte* Name)
{
return ((delegate* unmanaged[Stdcall]<ID3D12ShaderReflectionConstantBuffer*, sbyte*, ID3D12ShaderReflectionVariable>)(lpVtbl[2]))((ID3D12ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name);
}
}