示例#1
0
        public static unsafe IntPtr CreateContextFromType <T4>(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, ref T4 user_data, out OpenTK.Compute.CL10.ErrorCode errcode_ret)
            where T4 : struct
        {
            IntPtr properties_correct = new IntPtr((int)properties);

            return(CreateContextFromType(ref properties_correct, device_type, pfn_notify, ref user_data, out errcode_ret));
        }
示例#2
0
        public static unsafe IntPtr CreateContext <T4>(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, ref T4 user_data, out OpenTK.Compute.CL10.ErrorCode errcode_ret)
            where T4 : struct
        {
            IntPtr properties_correct = new IntPtr((int)properties);

            return(CreateContext(ref properties_correct, num_devices, ref devices, pfn_notify, ref user_data, out errcode_ret));
        }