public unsafe EncogCLDevice(global::Org.Encog.Engine.Opencl.EncogCLPlatform p0, global::Org.Jocl.Cl_device_id p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(EncogCLDevice))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/encog/engine/opencl/EncogCLPlatform;Lorg/jocl/cl_device_id;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/encog/engine/opencl/EncogCLPlatform;Lorg/jocl/cl_device_id;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_encog_engine_opencl_EncogCLPlatform_Lorg_jocl_cl_device_id_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_encog_engine_opencl_EncogCLPlatform_Lorg_jocl_cl_device_id_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/encog/engine/opencl/EncogCLPlatform;Lorg/jocl/cl_device_id;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_encog_engine_opencl_EncogCLPlatform_Lorg_jocl_cl_device_id_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_encog_engine_opencl_EncogCLPlatform_Lorg_jocl_cl_device_id_, __args);
            } finally {
            }
        }
Ejemplo n.º 2
0
 static IntPtr n_GetPlatformString_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Org.Encog.Engine.Opencl.EncogCLPlatform __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.EncogCLPlatform> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.GetPlatformString(p0)));
 }
Ejemplo n.º 3
0
 static IntPtr n_GetContext(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Encog.Engine.Opencl.EncogCLPlatform __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.EncogCLPlatform> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Context));
 }
Ejemplo n.º 4
0
 static IntPtr n_GetDevices(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Encog.Engine.Opencl.EncogCLPlatform __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.EncogCLPlatform> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaList <global::Org.Encog.Engine.Opencl.EncogCLDevice> .ToLocalJniHandle(__this.Devices));
 }