Class QCOMEXTHostPtr



  • public class QCOMEXTHostPtr
    extends java.lang.Object
    Native bindings to the qcom_ext_host_ptr extension.

    This extension extends the functionality provided by CreateBuffer, CreateImage2D, CreateImage3D. It allows applications to specify a new flag MEM_EXT_HOST_PTR_QCOM which enables the driver to map external memory allocations --to be defined in future layered extensions-- to the device's address space and thus avoiding having to copy data back and forth between the host and the device.

    Requires CL11.

    • Method Detail

      • clGetDeviceImageInfoQCOM

        public static int clGetDeviceImageInfoQCOM(long device,
                                                   long image_width,
                                                   long image_height,
                                                   CLImageFormat image_format,
                                                   int param_name,
                                                   java.nio.ByteBuffer param_value,
                                                   PointerBuffer param_value_size_ret)
        An application that creates OpenCL image objects with the MEM_EXT_HOST_PTR_QCOM flag can invoke this function to query the required row pitch, slice pitch and alignment for a particular device.
        Parameters:
        device - a valid device
        image_width - width of the image in image elements (pixels)
        image_height - height of the image in image elements (pixels)
        image_format - format of the image
        param_name - the parameter to query. One of:
        IMAGE_ROW_PITCHIMAGE_SLICE_PITCHIMAGE_ROW_ALIGNMENT_QCOM
        IMAGE_SLICE_ALIGNMENT_QCOM
        param_value - a pointer to memory where the appropriate result being queried is returned. If param_value is NULL, it is ignored.
        param_value_size_ret - the actual size in bytes of data being queried by param_value. If NULL, it is ignored.
      • clGetDeviceImageInfoQCOM

        public static int clGetDeviceImageInfoQCOM(long device,
                                                   long image_width,
                                                   long image_height,
                                                   CLImageFormat image_format,
                                                   int param_name,
                                                   java.nio.IntBuffer param_value,
                                                   PointerBuffer param_value_size_ret)
        IntBuffer version of: GetDeviceImageInfoQCOM
      • clGetDeviceImageInfoQCOM

        public static int clGetDeviceImageInfoQCOM(long device,
                                                   long image_width,
                                                   long image_height,
                                                   CLImageFormat image_format,
                                                   int param_name,
                                                   int[] param_value,
                                                   PointerBuffer param_value_size_ret)
        int[] version of: GetDeviceImageInfoQCOM