java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLMemory
au.notzed.zcl.CLBuffer
public class CLBuffer extends CLMemory
Interface for memory buffers.
-
Constructor Summary
Constructors Constructor Description CLBuffer(jdk.incubator.foreign.MemoryAddress p)
-
Method Summary
Modifier and Type Method Description CLBuffer
createSubBuffer(long flags, CLBufferInfo info)
Call clCreateSubBuffer.CLTask
ofFill(float... pattern)
CLTask
ofRead(byte[] target)
CLTask
ofRead(float[] target)
CLTask
ofRead(int[] target)
CLTask
ofRead(int offset, int length, float[] target, int toff)
CLTask
ofRead(short[] target)
CLTask
ofRead(java.nio.ByteBuffer target, boolean blocking)
CLTask
ofWrite(byte[] source)
CLTask
ofWrite(float[] source)
CLTask
ofWrite(int[] source)
CLTask
ofWrite(short[] source)
CLTask
ofWrite(java.nio.ByteBuffer source, boolean blocking)
static CLBufferInfo
REGION(long origin, long size)
Parameter to define a region for createSubBuffer().Methods inherited from class au.notzed.zcl.CLMemory
alloc, alloc, alloc, alloc, alloc, create, getAssociatedMemObject, getContext, getFlags, getHostPtr, getMemOffset, getSize, getType, release, setMemObjectDestructorCallback, toFloat, toFloat, toFloat, toHalf, toHalf, toHalf
Methods inherited from class au.notzed.zcl.CLObject
getInfo, getInfo, getInfo, getInfoAny, getInfoAny, getInfoAny, getInfoAny, getInfoAnyV, getInfoByteV, getInfoByteV, getInfoInt, getInfoInt, getInfoInt, getInfoInt, getInfoJava, getInfoLong, getInfoLong, getInfoLong, getInfoLong, getInfoLongV, getInfoLongV, getInfoPropertyV, getInfoSizeT, getInfoSizeT, getInfoSizeT, getInfoSizeTA, getInfoString, getInfoString, getInfoString, getInfoString, release, release
Methods inherited from class api.Native
addr, addr, addr, debugDumpReachable, debugFlushAll, downcallHandle, downcallHandle, dumpSignature, freeUpcallStub, getAddr, getAddr, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, loadLibraries, parseStruct, parseUnion, release, release, resolve, setAddr, setAddr, setByte, setByte, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setShort, setShort, toAddrV, toAddrV, toAddrV, toByteV, toByteV, toLongV, toLongV, toObjectV, toObjectV, toString, upcallStub
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CLBuffer
public CLBuffer(jdk.incubator.foreign.MemoryAddress p)
-
-
Method Details
-
REGION
Parameter to define a region for createSubBuffer().- Parameters:
origin
- Offset into buffer.size
- Size of sub-buffer.- Returns:
- See Also:
createSubBuffer(long, au.notzed.zcl.CLBufferInfo)
-
createSubBuffer
Call clCreateSubBuffer.- Parameters:
flags
-info
- Define the properties for the sub-bufer.- Returns:
- A newly created buffer.
It must be released when no longer needed.
- Throws:
CLException
- Since:
- OpenCL 1.1
- See Also:
REGION(long, long)
-
ofRead
-
ofRead
-
ofRead
-
ofRead
-
ofRead
-
ofRead
-
ofWrite
-
ofWrite
-
ofWrite
-
ofWrite
-
ofWrite
-
ofFill
-