From: Felix Krause <fordprefect86@googlemail.com>
Cc: mailbox@dmitry-kazakov.de
Subject: Re: StdCall and pragma Import_Function
Date: Fri, 19 Aug 2011 13:07:16 -0700 (PDT)
Date: 2011-08-19T13:07:16-07:00 [thread overview]
Message-ID: <51f8a92b-41b2-4d57-914e-a326163adc9f@glegroupsg2000goo.googlegroups.com> (raw)
In-Reply-To: <1je5iuczb7anp.1vt48byg9dio7$.dlg@40tude.net>
typedef signed __int32 cl_int;
typedef struct _cl_platform_id * cl_platform_id;
typedef unsigned __int64 cl_ulong;
typedef cl_ulong cl_bitfield;
typedef cl_bitfield cl_device_type;
typedef struct _cl_device_id * cl_device_id;
typedef unsigned __int32 cl_uint;
(For further details, the headers are available at http://www.khronos.org/registry/cl/ as cl.h and cl_platform.h)
As this problem definitely is fixable (by substituting the bit vector types with ULong in the function definitions), I'm confident I'll get my bindings working cross-platform. Unlike Glib, OpenCL is an open standard and there was much effort to make the API as clear and portable as possible. There also exist cross-platform bindings for the related OpenGL API in Ada, so it definitely is possible.
next prev parent reply other threads:[~2011-08-19 20:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-19 16:24 StdCall and pragma Import_Function Felix Krause
2011-08-19 16:51 ` Dmitry A. Kazakov
2011-08-19 17:07 ` Felix Krause
2011-08-19 18:58 ` Dmitry A. Kazakov
2011-08-19 19:23 ` Felix Krause
2011-08-19 19:43 ` Dmitry A. Kazakov
2011-08-19 20:07 ` Felix Krause [this message]
2011-08-19 20:37 ` Dmitry A. Kazakov
2011-08-19 20:45 ` Jeffrey Carter
2011-08-21 18:25 ` Felix Krause
2011-08-20 8:04 ` Georg Bauhaus
2011-08-20 9:23 ` Dmitry A. Kazakov
2011-08-19 17:26 ` Adam Beneschan
2011-08-19 17:38 ` Felix Krause
2011-08-19 18:10 ` Jeffrey Carter
2011-08-19 18:37 ` Felix Krause
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox