… | |
… | |
271 | ulong IV - Q |
271 | ulong IV - Q |
272 | float NV float f |
272 | float NV float f |
273 | half IV ushort S |
273 | half IV ushort S |
274 | double NV double d |
274 | double NV double d |
275 | |
275 | |
|
|
276 | =head2 GLX SUPPORT |
|
|
277 | |
|
|
278 | Due to the sad state that OpenGL support is in in Perl (mostly the OpenGL |
|
|
279 | module, which has little to no documentation and has little to no support |
|
|
280 | for glx), this module, as a special extension, treats context creation |
|
|
281 | properties C<OpenCL::GLX_DISPLAY_KHR> and C<OpenCL::GL_CONTEXT_KHR> |
|
|
282 | specially: If either or both of these are C<undef>, then the OpenCL |
|
|
283 | module tries to dynamically resolve C<glxGetCurrentDisplay> and |
|
|
284 | C<glxGetCurrentContext>, call these functions and use their return values |
|
|
285 | instead. |
|
|
286 | |
|
|
287 | For this to work, the OpenGL library must be loaded, a GLX context must |
|
|
288 | have been created and be made current, and C<dlsym> must be available and |
|
|
289 | capable of finding the function via C<RTLD_DEFAULT>. |
|
|
290 | |
276 | =head2 THE OpenCL PACKAGE |
291 | =head2 THE OpenCL PACKAGE |
277 | |
292 | |
278 | =over 4 |
293 | =over 4 |
279 | |
294 | |
280 | =item $int = OpenCL::errno |
295 | =item $int = OpenCL::errno |
… | |
… | |
1053 | |
1068 | |
1054 | =for gengetinfo begin gl_texture |
1069 | =for gengetinfo begin gl_texture |
1055 | |
1070 | |
1056 | =item $GLenum = $gl_texture->target |
1071 | =item $GLenum = $gl_texture->target |
1057 | |
1072 | |
1058 | Calls C<clGetGlTextureInfo> with C<CL_GL_TEXTURE_TARGET> and returns the result. |
1073 | Calls C<clGetGLTextureInfo> with C<CL_GL_TEXTURE_TARGET> and returns the result. |
1059 | |
1074 | |
1060 | =item $GLint = $gl_texture->gl_mipmap_level |
1075 | =item $GLint = $gl_texture->gl_mipmap_level |
1061 | |
1076 | |
1062 | Calls C<clGetGlTextureInfo> with C<CL_GL_MIPMAP_LEVEL> and returns the result. |
1077 | Calls C<clGetGLTextureInfo> with C<CL_GL_MIPMAP_LEVEL> and returns the result. |
1063 | |
1078 | |
1064 | =for gengetinfo end gl_texture |
1079 | =for gengetinfo end gl_texture |
1065 | |
1080 | |
1066 | =back |
1081 | =back |
1067 | |
1082 | |