… | |
… | |
419 | |
419 | |
420 | =item * When enqueuing commands, if the enqueue method is called in void |
420 | =item * When enqueuing commands, if the enqueue method is called in void |
421 | context, no event is created. In all other contexts an event is returned |
421 | context, no event is created. In all other contexts an event is returned |
422 | by the method. |
422 | by the method. |
423 | |
423 | |
424 | =item * This module expects all functions to return C<CL_SUCCESS>. If any |
424 | =item * This module expects all functions to return C<OpenCL::SUCCESS>. If any |
425 | other status is returned the function will throw an exception, so you |
425 | other status is returned the function will throw an exception, so you |
426 | don't normally have to to any error checking. |
426 | don't normally have to to any error checking. |
427 | |
427 | |
428 | =back |
428 | =back |
429 | |
429 | |
… | |
… | |
752 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
752 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContextFromType.html> |
753 | |
753 | |
754 | =item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr) |
754 | =item $ctx = $platform->context ($properties, \@devices, $callback->($err, $pvt) = $print_stderr) |
755 | |
755 | |
756 | Create a new OpenCL::Context object using the given device object(s)- a |
756 | Create a new OpenCL::Context object using the given device object(s)- a |
757 | CL_CONTEXT_PLATFORM property is supplied automatically. |
757 | OpenCL::CONTEXT_PLATFORM property is supplied automatically. |
758 | |
758 | |
759 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |
759 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateContext.html> |
760 | |
760 | |
761 | =item $packed_value = $platform->info ($name) |
761 | =item $packed_value = $platform->info ($name) |
762 | |
762 | |
… | |
… | |
1701 | =over 4 |
1701 | =over 4 |
1702 | |
1702 | |
1703 | =item $subbuf = $buf_obj->sub_buffer_region ($flags, $origin, $size) |
1703 | =item $subbuf = $buf_obj->sub_buffer_region ($flags, $origin, $size) |
1704 | |
1704 | |
1705 | Creates an OpenCL::Buffer objects from this buffer and returns it. The |
1705 | Creates an OpenCL::Buffer objects from this buffer and returns it. The |
1706 | C<buffer_create_type> is assumed to be C<CL_BUFFER_CREATE_TYPE_REGION>. |
1706 | C<buffer_create_type> is assumed to be C<OpenCL::BUFFER_CREATE_TYPE_REGION>. |
1707 | |
1707 | |
1708 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateSubBuffer.html> |
1708 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateSubBuffer.html> |
1709 | |
1709 | |
1710 | =back |
1710 | =back |
1711 | |
1711 | |
… | |
… | |
1727 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html> |
1727 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clGetImageInfo.html> |
1728 | |
1728 | |
1729 | =item ($channel_order, $channel_data_type) = $image->format |
1729 | =item ($channel_order, $channel_data_type) = $image->format |
1730 | |
1730 | |
1731 | Returns the channel order and type used to create the image by calling |
1731 | Returns the channel order and type used to create the image by calling |
1732 | C<clGetImageInfo> with C<CL_IMAGE_FORMAT>. |
1732 | C<clGetImageInfo> with C<OpenCL::IMAGE_FORMAT>. |
1733 | |
1733 | |
1734 | =for gengetinfo begin image |
1734 | =for gengetinfo begin image |
1735 | |
1735 | |
1736 | =item $int = $image->element_size |
1736 | =item $int = $image->element_size |
1737 | |
1737 | |
… | |
… | |
1893 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. |
1893 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_OPTIONS> and returns the result. |
1894 | |
1894 | |
1895 | =item $string = $program->build_log ($device) |
1895 | =item $string = $program->build_log ($device) |
1896 | |
1896 | |
1897 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_LOG> and returns the result. |
1897 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BUILD_LOG> and returns the result. |
|
|
1898 | |
|
|
1899 | =item $binary_type = $program->binary_type ($device) |
|
|
1900 | |
|
|
1901 | Calls C<clGetProgramBuildInfo> with C<OpenCL::PROGRAM_BINARY_TYPE> and returns the result. |
1898 | |
1902 | |
1899 | =for gengetinfo end program_build |
1903 | =for gengetinfo end program_build |
1900 | |
1904 | |
1901 | =item $packed_value = $program->info ($name) |
1905 | =item $packed_value = $program->info ($name) |
1902 | |
1906 | |