Package org.lwjgl.opencl
Class QCOMEXTHostPtr
java.lang.Object
org.lwjgl.opencl.QCOMEXTHostPtr
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
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by theparam_name
argument ofGetDeviceInfo
.static final int
Accepted by theparam_name
argument ofGetDeviceInfo
.static final int
Accepted by theparam_name
argument ofGetDeviceImageInfoQCOM
.static final int
Accepted by theparam_name
argument ofGetDeviceImageInfoQCOM
.static final int
static final int
host_cache_policy.static final int
host_cache_policy.static final int
host_cache_policy.static final int
host_cache_policy. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clGetDeviceImageInfoQCOM
(long device, long image_width, long image_height, CLImageFormat image_format, int param_name, int[] param_value, PointerBuffer param_value_size_ret) Array version of:GetDeviceImageInfoQCOM
static int
clGetDeviceImageInfoQCOM
(long device, long image_width, long image_height, CLImageFormat image_format, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret) An application that creates OpenCL image objects with theMEM_EXT_HOST_PTR_QCOM
flag can invoke this function to query the required row pitch, slice pitch and alignment for a particular device.static int
clGetDeviceImageInfoQCOM
(long device, long image_width, long image_height, CLImageFormat image_format, int param_name, IntBuffer param_value, PointerBuffer param_value_size_ret) An application that creates OpenCL image objects with theMEM_EXT_HOST_PTR_QCOM
flag can invoke this function to query the required row pitch, slice pitch and alignment for a particular device.static int
nclGetDeviceImageInfoQCOM
(long device, long image_width, long image_height, long image_format, int param_name, long param_value_size, long param_value, long param_value_size_ret) Unsafe version of:GetDeviceImageInfoQCOM
-
Field Details
-
CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM
public static final int CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOMAccepted by theparam_name
argument ofGetDeviceInfo
.- See Also:
-
CL_DEVICE_PAGE_SIZE_QCOM
public static final int CL_DEVICE_PAGE_SIZE_QCOMAccepted by theparam_name
argument ofGetDeviceInfo
.- See Also:
-
CL_MEM_EXT_HOST_PTR_QCOM
public static final int CL_MEM_EXT_HOST_PTR_QCOM- See Also:
-
CL_MEM_HOST_UNCACHED_QCOM
public static final int CL_MEM_HOST_UNCACHED_QCOMhost_cache_policy.- See Also:
-
CL_MEM_HOST_WRITEBACK_QCOM
public static final int CL_MEM_HOST_WRITEBACK_QCOMhost_cache_policy.- See Also:
-
CL_MEM_HOST_WRITETHROUGH_QCOM
public static final int CL_MEM_HOST_WRITETHROUGH_QCOMhost_cache_policy.- See Also:
-
CL_MEM_HOST_WRITE_COMBINING_QCOM
public static final int CL_MEM_HOST_WRITE_COMBINING_QCOMhost_cache_policy.- See Also:
-
CL_IMAGE_ROW_ALIGNMENT_QCOM
public static final int CL_IMAGE_ROW_ALIGNMENT_QCOMAccepted by theparam_name
argument ofGetDeviceImageInfoQCOM
.- See Also:
-
CL_IMAGE_SLICE_ALIGNMENT_QCOM
public static final int CL_IMAGE_SLICE_ALIGNMENT_QCOMAccepted by theparam_name
argument ofGetDeviceImageInfoQCOM
.- See Also:
-
-
Method Details
-
nclGetDeviceImageInfoQCOM
public static int nclGetDeviceImageInfoQCOM(long device, long image_width, long image_height, long image_format, int param_name, long param_value_size, long param_value, long param_value_size_ret) Unsafe version of:GetDeviceImageInfoQCOM
- Parameters:
param_value_size
- the size in bytes of memory pointed to byparam_value
. This size must be ≥ size of return type. Ifparam_value
isNULL
, it is ignored.
-
clGetDeviceImageInfoQCOM
public static int clGetDeviceImageInfoQCOM(long device, long image_width, long image_height, CLImageFormat image_format, int param_name, @Nullable ByteBuffer param_value, @Nullable PointerBuffer param_value_size_ret) An application that creates OpenCL image objects with theMEM_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 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_PITCH
IMAGE_SLICE_PITCH
IMAGE_ROW_ALIGNMENT_QCOM
IMAGE_SLICE_ALIGNMENT_QCOM
param_value
- a pointer to memory where the appropriate result being queried is returned. Ifparam_value
isNULL
, 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, @Nullable IntBuffer param_value, @Nullable PointerBuffer param_value_size_ret) An application that creates OpenCL image objects with theMEM_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 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_PITCH
IMAGE_SLICE_PITCH
IMAGE_ROW_ALIGNMENT_QCOM
IMAGE_SLICE_ALIGNMENT_QCOM
param_value
- a pointer to memory where the appropriate result being queried is returned. Ifparam_value
isNULL
, 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, @Nullable int[] param_value, @Nullable PointerBuffer param_value_size_ret) Array version of:GetDeviceImageInfoQCOM
-