mirror of
https://github.com/Const-me/Whisper.git
synced 2026-10-27 18:29:49 +08:00
22 lines
533 B
C#
22 lines
533 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Whisper.Internal
|
|
{
|
|
struct sModelSetup
|
|
{
|
|
eModelImplementation impl;
|
|
eGpuModelFlags flags;
|
|
[MarshalAs( UnmanagedType.LPWStr )]
|
|
string? adapter;
|
|
|
|
public sModelSetup( eGpuModelFlags flags, eModelImplementation impl, string? adapter )
|
|
{
|
|
this.impl = impl;
|
|
this.flags = flags;
|
|
this.adapter = adapter;
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer( CallingConvention.StdCall )]
|
|
delegate void pfnListAdapters( [In, MarshalAs( UnmanagedType.LPWStr )] string name, IntPtr pv );
|
|
} |