From 67155d53315a58d1b78779cde649d05eb58a56b1 Mon Sep 17 00:00:00 2001 From: homuler Date: Mon, 27 Sep 2021 15:14:16 +0900 Subject: [PATCH] fix: missing MarshalAs --- .../Runtime/Scripts/PInvoke/NativeMethods/External/Absl_Safe.cs | 1 + .../Scripts/PInvoke/NativeMethods/Gpu/EglSurfaceHolder_Safe.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/External/Absl_Safe.cs b/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/External/Absl_Safe.cs index 579bfe8b6..95dd6db28 100644 --- a/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/External/Absl_Safe.cs +++ b/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/External/Absl_Safe.cs @@ -5,6 +5,7 @@ namespace Mediapipe { internal static partial class SafeNativeMethods { [Pure, DllImport (MediaPipeLibrary, ExactSpelling = true)] + [return: MarshalAs(UnmanagedType.I1)] public static extern bool absl_Status__ok(IntPtr status); [Pure, DllImport (MediaPipeLibrary, ExactSpelling = true)] diff --git a/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/Gpu/EglSurfaceHolder_Safe.cs b/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/Gpu/EglSurfaceHolder_Safe.cs index f822a40e0..23949b2fc 100644 --- a/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/Gpu/EglSurfaceHolder_Safe.cs +++ b/Packages/com.github.homuler.mediapipe/Runtime/Scripts/PInvoke/NativeMethods/Gpu/EglSurfaceHolder_Safe.cs @@ -12,7 +12,7 @@ internal static partial class SafeNativeMethods { public static extern IntPtr mp_EglSurfaceHolderUniquePtr__release(IntPtr eglSurfaceHolder); [Pure, DllImport (MediaPipeLibrary, ExactSpelling = true)] - public static extern void mp_EglSurfaceHolder__SetFlipY__b(IntPtr eglSurfaceHolder, bool flipY); + public static extern void mp_EglSurfaceHolder__SetFlipY__b(IntPtr eglSurfaceHolder, [MarshalAs(UnmanagedType.I1)]bool flipY); [Pure, DllImport (MediaPipeLibrary, ExactSpelling = true)] [return: MarshalAs(UnmanagedType.I1)]