Package org.lwjgl.opencl
Class QCOMEXTHostPtr
- java.lang.Object
-
- org.lwjgl.opencl.QCOMEXTHostPtr
-
public class QCOMEXTHostPtr extends java.lang.ObjectNative 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 flagMEM_EXT_HOST_PTR_QCOMwhich 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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intCL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM
CL_DEVICE_PAGE_SIZE_QCOMAccepted by theparam_nameargument ofGetDeviceInfo.static intCL_IMAGE_ROW_ALIGNMENT_QCOM
CL_IMAGE_SLICE_ALIGNMENT_QCOMAccepted by theparam_nameargument ofGetDeviceImageInfoQCOM.static intCL_MEM_EXT_HOST_PTR_QCOMstatic intCL_MEM_HOST_UNCACHED_QCOM
CL_MEM_HOST_WRITE_COMBINING_QCOM
CL_MEM_HOST_WRITEBACK_QCOM
CL_MEM_HOST_WRITETHROUGH_QCOMhost_cache_policy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intclGetDeviceImageInfoQCOM(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 theMEM_EXT_HOST_PTR_QCOMflag can invoke this function to query the required row pitch, slice pitch and alignment for a particular device.static intclGetDeviceImageInfoQCOM(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:GetDeviceImageInfoQCOMstatic intclGetDeviceImageInfoQCOM(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
-
-
-
Field Detail
-
CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM
public static final int CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM
Accepted by theparam_nameargument ofGetDeviceInfo.- See Also:
- Constant Field Values
-
CL_DEVICE_PAGE_SIZE_QCOM
public static final int CL_DEVICE_PAGE_SIZE_QCOM
Accepted by theparam_nameargument ofGetDeviceInfo.- See Also:
- Constant Field Values
-
CL_MEM_EXT_HOST_PTR_QCOM
public static final int CL_MEM_EXT_HOST_PTR_QCOM
- See Also:
- Constant Field Values
-
CL_MEM_HOST_UNCACHED_QCOM
public static final int CL_MEM_HOST_UNCACHED_QCOM
host_cache_policy.- See Also:
- Constant Field Values
-
CL_MEM_HOST_WRITEBACK_QCOM
public static final int CL_MEM_HOST_WRITEBACK_QCOM
host_cache_policy.- See Also:
- Constant Field Values
-
CL_MEM_HOST_WRITETHROUGH_QCOM
public static final int CL_MEM_HOST_WRITETHROUGH_QCOM
host_cache_policy.- See Also:
- Constant Field Values
-
CL_MEM_HOST_WRITE_COMBINING_QCOM
public static final int CL_MEM_HOST_WRITE_COMBINING_QCOM
host_cache_policy.- See Also:
- Constant Field Values
-
CL_IMAGE_ROW_ALIGNMENT_QCOM
public static final int CL_IMAGE_ROW_ALIGNMENT_QCOM
Accepted by theparam_nameargument ofGetDeviceImageInfoQCOM.- See Also:
- Constant Field Values
-
CL_IMAGE_SLICE_ALIGNMENT_QCOM
public static final int CL_IMAGE_SLICE_ALIGNMENT_QCOM
Accepted by theparam_nameargument ofGetDeviceImageInfoQCOM.- See Also:
- Constant Field Values
-
-
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 theMEM_EXT_HOST_PTR_QCOMflag can invoke this function to query the required row pitch, slice pitch and alignment for a particular device.- Parameters:
device- a valid deviceimage_width- width of the image in image elements (pixels)image_height- height of the image in image elements (pixels)image_format- format of the imageparam_name- the parameter to query. One of:IMAGE_ROW_PITCHIMAGE_SLICE_PITCHIMAGE_ROW_ALIGNMENT_QCOMIMAGE_SLICE_ALIGNMENT_QCOMparam_value- a pointer to memory where the appropriate result being queried is returned. Ifparam_valueisNULL, it is ignored.param_value_size_ret- the actual size in bytes of data being queried byparam_value. IfNULL, 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
-
-