Package org.lwjgl.opencl
Class ARMImportMemory
java.lang.Object
org.lwjgl.opencl.ARMImportMemory
Native bindings to the arm_import_memory extension.
This extension adds a new function that allows for direct memory import into OpenCL via the ImportMemoryARM function.
Memory imported through this interface will be mapped into the device's page tables directly, providing zero copy access. It will never fall back to copy operations and aliased buffers, instead producing an error when mapping is not possible.
Types of memory supported for import are specified as additional extension strings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex of layer in a multilayer hardware buffer.static final intIndex of plane in a multiplanar hardware buffer.static final intData consistency with host property.static final longImport memory size value to indicate a size for the whole buffer.static final intAndroid hardware buffer type value forIMPORT_TYPE_ARMproperty.static final intDefault and valid properties name forcl_arm_import_memory.static final intDMA BUF memory type value forIMPORT_TYPE_ARMproperty.static final intHost process memory type default value forIMPORT_TYPE_ARMpropertystatic final intProtected memory property. -
Method Summary
Modifier and TypeMethodDescriptionstatic longclImportMemoryARM(long context, long flags, @Nullable org.lwjgl.PointerBuffer properties, ByteBuffer memory, int @Nullable [] errcode_ret) Array version of:ImportMemoryARMstatic longclImportMemoryARM(long context, long flags, @Nullable org.lwjgl.PointerBuffer properties, ByteBuffer memory, @Nullable IntBuffer errcode_ret) static longnclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret) Unsafe version of:ImportMemoryARM
-
Field Details
-
CL_IMPORT_TYPE_ARM
public static final int CL_IMPORT_TYPE_ARMDefault and valid properties name forcl_arm_import_memory.- See Also:
-
CL_IMPORT_TYPE_HOST_ARM
public static final int CL_IMPORT_TYPE_HOST_ARMHost process memory type default value forIMPORT_TYPE_ARMproperty- See Also:
-
CL_IMPORT_TYPE_DMA_BUF_ARM
public static final int CL_IMPORT_TYPE_DMA_BUF_ARMDMA BUF memory type value forIMPORT_TYPE_ARMproperty.- See Also:
-
CL_IMPORT_TYPE_PROTECTED_ARM
public static final int CL_IMPORT_TYPE_PROTECTED_ARMProtected memory property.- See Also:
-
CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM
public static final int CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARMAndroid hardware buffer type value forIMPORT_TYPE_ARMproperty.- See Also:
-
CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM
public static final int CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARMData consistency with host property.- See Also:
-
CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM
public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARMIndex of plane in a multiplanar hardware buffer.- See Also:
-
CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM
public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARMIndex of layer in a multilayer hardware buffer.- See Also:
-
CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM
public static final long CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARMImport memory size value to indicate a size for the whole buffer.- See Also:
-
-
Method Details
-
nclImportMemoryARM
public static long nclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret) Unsafe version of:ImportMemoryARM -
clImportMemoryARM
public static long clImportMemoryARM(long context, long flags, @Nullable org.lwjgl.PointerBuffer properties, ByteBuffer memory, @Nullable IntBuffer errcode_ret) - Parameters:
errcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.
-
clImportMemoryARM
public static long clImportMemoryARM(long context, long flags, @Nullable org.lwjgl.PointerBuffer properties, ByteBuffer memory, int @Nullable [] errcode_ret) Array version of:ImportMemoryARM
-