| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static enum | CLMemory.
Configures the mapping process. |
| public static enum | CLMemory.
Memory settings for configuring CLMemory. |
| Modifier and Type | Field and Description |
|---|---|
| private final CLMemObjBinding | |
| pack-priv B | |
| protected int | |
| protected int | |
| protected final int | |
| protected long |
| Access | Constructor and Description |
|---|---|
| protected <Buffer> | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract <T extends Buffer> CLMemory | cloneWith(T directBuffer)
Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public B | |
| protected static CL | |
| public int | |
| public long | |
| public EnumSet | |
| public int | |
| public int | |
| public int | |
| public int | |
| protected static long | |
| public int | |
| protected final void | |
| private void | |
| protected static boolean | isHostPointerFlag(final int flags)
Returns true if a host pointer must be specified on mem object creation. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | registerDestructorCallback(final CLMemObjectListener listener)
Registers a callback which will be called by the OpenCL implementation when the memory object is released. |
| public void | release()
Overrides com. Implements com. |
| public String | toString()
Overrides com. |
| public CLMemory |
| binding | back to summary |
|---|---|
| private final CLMemObjBinding binding | |
| buffer | back to summary |
|---|---|
| pack-priv B buffer | |
| clCapacity | back to summary |
|---|---|
| protected int clCapacity | |
| elementSize | back to summary |
|---|---|
| protected int elementSize | |
| FLAGS | back to summary |
|---|---|
| protected final int FLAGS | |
| size | back to summary |
|---|---|
| protected long size | |
| CLMemory | back to summary |
|---|---|
| protected <Buffer> CLMemory(final CLContext context, final long size, final long id, final int flags) | |
| CLMemory | back to summary |
|---|---|
| protected CLMemory(final CLContext context, final B directBuffer, final long size, final long id, final int flags) | |
| cloneWith | back to summary |
|---|---|
| public abstract <T extends Buffer> CLMemory Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Returns the OpenGL buffer type of this shared buffer.
| |
| getBuffer | back to summary |
|---|---|
| public B getBuffer() Returns the optional NIO buffer for this memory object. | |
| getCL | back to summary |
|---|---|
| protected static CL getCL(final CLContext context) | |
| getCLCapacity | back to summary |
|---|---|
| public int getCLCapacity() Returns the size in buffer elements of this memory object. | |
| getCLSize | back to summary |
|---|---|
| public long getCLSize() Returns the size of the allocated OpenCL memory in bytes. | |
| getConfig | back to summary |
|---|---|
| public EnumSet Returns the configuration of this memory object. | |
| getElementSize | back to summary |
|---|---|
| public int getElementSize() Returns the size in bytes of a single buffer element. This method returns 1 if no buffer is available indicating regular byte access. | |
| getMapCount | back to summary |
|---|---|
| public int getMapCount() Returns the number of buffer mappings. The map count returned should be considered immediately stale. It is unsuitable for general use in applications. This feature is provided for debugging. | |
| getNIOCapacity | back to summary |
|---|---|
| public int getNIOCapacity() Returns the capacity of the wrapped direct buffer or 0 if no buffer available. | |
| getNIOSize | back to summary |
|---|---|
| public int getNIOSize() Returns the size of the wrapped direct buffer in byte or 0 if no buffer available. | |
| getSizeImpl | back to summary |
|---|---|
| protected static long getSizeImpl(final CLContext context, final long id) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initCLCapacity | back to summary |
|---|---|
| protected final void initCLCapacity() | |
| initElementSize | back to summary |
|---|---|
| private void initElementSize() | |
| isHostPointerFlag | back to summary |
|---|---|
| protected static boolean isHostPointerFlag(final int flags) Returns true if a host pointer must be specified on mem object creation. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Returns true if this memory object was created with the | |
| isReadWrite | back to summary |
|---|---|
| public boolean isReadWrite() Returns true if this memory object was created with the | |
| isWriteOnly | back to summary |
|---|---|
| public boolean isWriteOnly() Returns true if this memory object was created with the | |
| registerDestructorCallback | back to summary |
|---|---|
| public void registerDestructorCallback(final CLMemObjectListener listener) Registers a callback which will be called by the OpenCL implementation when the memory object is released. | |
| release | back to summary |
|---|---|
| public void release() Overrides com. Implements com. Doc from com. Releases the OpenCL resource.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |
| use | back to summary |
|---|---|
| public CLMemory | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CLMemory. | |
| public static final CLMemory. | |
| public static final CLMemory. | |
| public static final CLMemory. | |
| public final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CLMemory. | |
| public static CLMemory. | |
| public static CLMemory. |
| GL_OBJECT_BUFFER | back to summary |
|---|---|
| public static final CLMemory. | |
| GL_OBJECT_RENDERBUFFER | back to summary |
|---|---|
| public static final CLMemory. | |
| GL_OBJECT_TEXTURE2D | back to summary |
|---|---|
| public static final CLMemory. | |
| GL_OBJECT_TEXTURE3D | back to summary |
|---|---|
| public static final CLMemory. | |
| TYPE | back to summary |
|---|---|
| public final int TYPE | |
| GLObjectType | back to summary |
|---|---|
| private GLObjectType(final int type) | |
| valueOf | back to summary |
|---|---|
| public static CLMemory. | |
| valueOf | back to summary |
|---|---|
| public static CLMemory. | |
| values | back to summary |
|---|---|
| public static CLMemory. | |
com.jogamp.opencl.CLCommandQueue#putMapBuffer(CLBuffer, com.jogamp.opencl.CLMemory.Map, boolean). , com.jogamp.opencl.CLCommandQueue#putMapImage(CLImage2d, com.jogamp.opencl.CLMemory.Map, boolean) , com.jogamp.opencl.CLCommandQueue#putMapImage(CLImage3d, com.jogamp.opencl.CLMemory.Map, boolean)
| Modifier and Type | Field and Description |
|---|---|
| public final int | FLAGS
Value of wrapped OpenCL flag. |
| public static final CLMemory. | READ
Enum representing CL_MAP_READ. |
| public static final CLMemory. | READ_WRITE
Enum representing CL_MAP_READ | CL_MAP_WRITE. |
| public static final CLMemory. | WRITE
Enum representing CL_MAP_WRITE. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CLMemory. | |
| public CLMemory. | |
| public static CLMemory. |
| FLAGS | back to summary |
|---|---|
| public final int FLAGS Value of wrapped OpenCL flag. | |
| READ | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MAP_READ. This flag specifies that the memory object will be mapped for read operation. | |
| READ_WRITE | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MAP_READ | CL_MAP_WRITE. This flag specifies that the memory object will be mapped for read and write operation. | |
| WRITE | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MAP_WRITE. This flag specifies that the memory object will be mapped for write operation. | |
| Map | back to summary |
|---|---|
| private Map(final int flags) | |
| valueOf | back to summary |
|---|---|
| public static CLMemory. | |
| valueOf | back to summary |
|---|---|
| public CLMemory. | |
| values | back to summary |
|---|---|
| public static CLMemory. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CLMemory. | ALLOCATE_BUFFER
Enum representing CL_MEM_ALLOC_HOST_PTR. |
| public final int | CONFIG
Value of wrapped OpenCL flag. |
| public static final CLMemory. | COPY_BUFFER
Enum representing CL_MEM_COPY_HOST_PTR. |
| public static final CLMemory. | READ_ONLY
Enum representing CL_MEM_READ_ONLY. |
| public static final CLMemory. | READ_WRITE
Enum representing CL_MEM_READ_WRITE. |
| public static final CLMemory. | USE_BUFFER
Enum representing CL_MEM_USE_HOST_PTR. |
| public static final CLMemory. | WRITE_ONLY
Enum representing CL_MEM_WRITE_ONLY. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static CLMemory. | |
| public static CLMemory. | |
| public static CLMemory. | |
| public static EnumSet |
| ALLOCATE_BUFFER | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_ALLOC_HOST_PTR.
This flag specifies that the application wants the OpenCL implementation
to allocate memory from host accessible memory.
| |
| CONFIG | back to summary |
|---|---|
| public final int CONFIG Value of wrapped OpenCL flag. | |
| COPY_BUFFER | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_COPY_HOST_PTR.
If | |
| READ_ONLY | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_READ_ONLY. This flag specifies that the memory object is a read-only memory object when used inside a kernel. Writing to a buffer or image object created withREAD_ONLY inside a kernel is undefined. | |
| READ_WRITE | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_READ_WRITE. This flag specifies that the memory object will be read and written by a kernel. | |
| USE_BUFFER | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_USE_HOST_PTR. If specified, it indicates that the application wants the OpenCL implementation to use memory referenced by host_ptr as the storage bits for the memory object. OpenCL implementations are allowed to cache the buffer contents pointed to by host_ptr in device memory. This cached copy can be used when kernels are executed on a device. | |
| WRITE_ONLY | back to summary |
|---|---|
| public static final CLMemory. Enum representing CL_MEM_WRITE_ONLY. This flags specifies that the memory object will be written but not read by a kernel. Reading from a buffer or image object created with WRITE_ONLY inside a kernel is undefined. | |
| Mem | back to summary |
|---|---|
| private Mem(final int config) | |
| flagsToInt | back to summary |
|---|---|
| public static int flagsToInt(final CLMemory. | |
| valueOf | back to summary |
|---|---|
| public static CLMemory. | |
| valueOf | back to summary |
|---|---|
| public static CLMemory. | |
| values | back to summary |
|---|---|
| public static CLMemory. | |
| valuesOf | back to summary |
|---|---|
| public static EnumSet | |