Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class ARMImportMemory

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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

Modifier and TypeField and Description
public static final int
CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM

Index of layer in a multilayer hardware buffer.

public static final int
CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM

Index of plane in a multiplanar hardware buffer.

public static final int
CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM

Data consistency with host property.

public static final long
CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM

Import memory size value to indicate a size for the whole buffer.

public static final int
CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM

Android hardware buffer type value for IMPORT_TYPE_ARM property.

public static final int
CL_IMPORT_TYPE_ARM

Default and valid properties name for cl_arm_import_memory.

public static final int
CL_IMPORT_TYPE_DMA_BUF_ARM

DMA BUF memory type value for IMPORT_TYPE_ARM property.

public static final int
CL_IMPORT_TYPE_HOST_ARM

Host process memory type default value for IMPORT_TYPE_ARM property

public static final int
CL_IMPORT_TYPE_PROTECTED_ARM

Protected memory property.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, int[] errcode_ret)

Array version of: ImportMemoryARM

public static long
nclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret)

Unsafe version of: ImportMemoryARM

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARMback to summary
public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM

Index of layer in a multilayer hardware buffer.

CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARMback to summary
public static final int CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM

Index of plane in a multiplanar hardware buffer.

CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARMback to summary
public static final int CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM

Data consistency with host property.

CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARMback to summary
public static final long CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM

Import memory size value to indicate a size for the whole buffer.

CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARMback to summary
public static final int CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM

Android hardware buffer type value for IMPORT_TYPE_ARM property.

CL_IMPORT_TYPE_ARMback to summary
public static final int CL_IMPORT_TYPE_ARM

Default and valid properties name for cl_arm_import_memory.

CL_IMPORT_TYPE_DMA_BUF_ARMback to summary
public static final int CL_IMPORT_TYPE_DMA_BUF_ARM

DMA BUF memory type value for IMPORT_TYPE_ARM property.

CL_IMPORT_TYPE_HOST_ARMback to summary
public static final int CL_IMPORT_TYPE_HOST_ARM

Host process memory type default value for IMPORT_TYPE_ARM property

CL_IMPORT_TYPE_PROTECTED_ARMback to summary
public static final int CL_IMPORT_TYPE_PROTECTED_ARM

Protected memory property.

Constructor Detail

ARMImportMemoryback to summary
protected ARMImportMemory()

Method Detail

clImportMemoryARMback to summary
public static long clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, IntBuffer errcode_ret)
Parameters
errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clImportMemoryARMback to summary
public static long clImportMemoryARM(long context, long flags, PointerBuffer properties, ByteBuffer memory, int[] errcode_ret)

Array version of: ImportMemoryARM

Annotations
@NativeType:cl_mem
nclImportMemoryARMback to summary
public static long nclImportMemoryARM(long context, long flags, long properties, long memory, long size, long errcode_ret)

Unsafe version of: ImportMemoryARM