mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-15 16:46:01 +08:00
Massive folder rename, follow Apis convention, separate Imaging (WIC)
This commit is contained in:
85
src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Image.cs
Normal file
85
src/Vortice.Win32.Graphics.Direct2D/Generated/ID2D1Image.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <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.Direct2D;
|
||||
|
||||
/// <include file='../Direct2D.xml' path='doc/member[@name="ID2D1Image"]/*' />
|
||||
/// <unmanaged>ID2D1Image</unmanaged>
|
||||
[Guid("65019f75-8da2-497c-b32c-dfa34e48ede6")]
|
||||
[NativeTypeName("struct ID2D1Image : ID2D1Resource")]
|
||||
[NativeInheritance("ID2D1Resource")]
|
||||
public unsafe partial struct ID2D1Image : INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_ID2D1Image
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x75, 0x9F, 0x01, 0x65,
|
||||
0xA2, 0x8D,
|
||||
0x7C, 0x49,
|
||||
0xB3,
|
||||
0x2C,
|
||||
0xDF,
|
||||
0xA3,
|
||||
0x4E,
|
||||
0x48,
|
||||
0xED,
|
||||
0xE6
|
||||
};
|
||||
|
||||
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_ID2D1Image));
|
||||
#else
|
||||
public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1Image));
|
||||
#endif
|
||||
|
||||
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[Stdcall]<IUnknown*, Guid*, void**, int>)(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(1)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(2)]
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IUnknown*, uint>)(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1Resource.GetFactory" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(3)]
|
||||
public void GetFactory(ID2D1Factory** factory)
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<ID2D1Image*, ID2D1Factory**, void>)(lpVtbl[3]))((ID2D1Image*)Unsafe.AsPointer(ref this), factory);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user