using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.Win32;
#pragma warning disable CS0649
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
///
/// The internal transform mapper manager interface.
///
[Guid("C5D8FC65-FB86-4C2D-9EF5-95AEC639C952")]
internal unsafe struct ID2D1TransformMapperInternal
{
///
/// Gets the for (C5D8FC65-FB86-4C2D-9EF5-95AEC639C952).
///
public static ref readonly Guid Guid
{
get
{
ReadOnlySpan data = new byte[] {
0x65, 0xFC, 0xD8, 0xC5,
0x86, 0xFB,
0x2D, 0x4C,
0x9E, 0xF5,
0x95,
0xAE,
0xC6,
0x39,
0xC9,
0x52
};
return ref Unsafe.As(ref MemoryMarshal.GetReference(data));
}
}
///
/// The vtable for the current instance.
///
private readonly void** lpVtbl;
///
/// Gets a value for the managed wrapper associated with this CCW.
///
/// The value for the managed wrapper associated with this CCW.
/// An for the operation.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public HRESULT GetManagedWrapperHandle(void** ppvHandle)
{
return ((delegate* unmanaged[Stdcall])this.lpVtbl[3])(
(ID2D1TransformMapperInternal*)Unsafe.AsPointer(ref this),
ppvHandle);
}
}