… | |
… | |
794 | =item $buf = $ctx->buffer_sv ($flags, $data) |
794 | =item $buf = $ctx->buffer_sv ($flags, $data) |
795 | |
795 | |
796 | Creates a new OpenCL::Buffer (actually OpenCL::BufferObj) object and |
796 | Creates a new OpenCL::Buffer (actually OpenCL::BufferObj) object and |
797 | initialise it with the given data values. |
797 | initialise it with the given data values. |
798 | |
798 | |
|
|
799 | =item $img = $ctx->image ($self, $flags, $channel_order, $channel_type, $type, $width, $height, $depth, $array_size = 0, $row_pitch = 0, $slice_pitch = 0, $num_mip_level = 0, $num_samples = 0, $*data = &PL_sv_undef) |
|
|
800 | |
|
|
801 | Creates a new OpenCL::Image object and optionally initialises it with |
|
|
802 | the given data values. |
|
|
803 | |
|
|
804 | L<http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateImage.html> |
|
|
805 | |
799 | =item $img = $ctx->image2d ($flags, $channel_order, $channel_type, $width, $height, $row_pitch = 0, $data = undef) |
806 | =item $img = $ctx->image2d ($flags, $channel_order, $channel_type, $width, $height, $row_pitch = 0, $data = undef) |
800 | |
807 | |
801 | Creates a new OpenCL::Image2D object and optionally initialises it with |
808 | Creates a new OpenCL::Image2D object and optionally initialises it with |
802 | the given data values. |
809 | the given data values. |
803 | |
810 | |