… | |
… | |
692 | Creates a new OpenCL::Image3D object and optionally initialises it with |
692 | Creates a new OpenCL::Image3D object and optionally initialises it with |
693 | the given data values. |
693 | the given data values. |
694 | |
694 | |
695 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateImage3D.html> |
695 | L<http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateImage3D.html> |
696 | |
696 | |
|
|
697 | =item $buffer = $ctx->gl_buffer ($flags, $bufobj) |
|
|
698 | |
|
|
699 | Creates a new OpenCL::Buffer (actually OpenCL::BufferObj) object that refers to the given |
|
|
700 | OpenGL buffer object. |
|
|
701 | |
|
|
702 | http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateFromGLBuffer.html |
|
|
703 | |
|
|
704 | =item $ctx->gl_texture2d ($flags, $target, $miplevel, $texture) |
|
|
705 | |
|
|
706 | Creates a new OpenCL::Image2D object that refers to the given OpenGL |
|
|
707 | 2D texture object. |
|
|
708 | |
|
|
709 | http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateFromGLTexture2D.html |
|
|
710 | |
|
|
711 | =item $ctx->gl_texture3d ($flags, $target, $miplevel, $texture) |
|
|
712 | |
|
|
713 | Creates a new OpenCL::Image3D object that refers to the given OpenGL |
|
|
714 | 3D texture object. |
|
|
715 | |
|
|
716 | http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateFromGLTexture3D.html |
|
|
717 | |
|
|
718 | =item $ctx->gl_renderbuffer ($flags, $renderbuffer) |
|
|
719 | |
|
|
720 | Creates a new OpenCL::Image2D object that refers to the given OpenGL |
|
|
721 | render buffer. |
|
|
722 | |
|
|
723 | http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clCreateFromGLRenderbuffer.html |
|
|
724 | |
697 | =item @formats = $ctx->supported_image_formats ($flags, $image_type) |
725 | =item @formats = $ctx->supported_image_formats ($flags, $image_type) |
698 | |
726 | |
699 | Returns a list of matching image formats - each format is an arrayref with |
727 | Returns a list of matching image formats - each format is an arrayref with |
700 | two values, $channel_order and $channel_type, in it. |
728 | two values, $channel_order and $channel_type, in it. |
701 | |
729 | |