Package org.lwjgl.opencl
Class CLEvent
java.lang.Object
org.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLEvent
- All Implemented Interfaces:
PointerWrapper
This class is a wrapper around a cl_mem pointer.
- Author:
- Spasi
-
Field Summary
Fields inherited from class org.lwjgl.PointerWrapperAbstract
pointer
-
Method Summary
Modifier and TypeMethodDescriptionReturns the command-queue associated with this event.int
getInfoInt
(int param_name) Returns the integer value of the specified parameter.long
getProfilingInfoLong
(int param_name) Returns the long value of the specified parameter.final int
final boolean
isValid()
Returns true if this object represents a valid pointer.Methods inherited from class org.lwjgl.PointerWrapperAbstract
checkValid, equals, getPointer, hashCode, toString
-
Method Details
-
getCLCommandQueue
Returns the command-queue associated with this event. For user events this method returns null.- Returns:
- the command-queue or null if this is a user event
-
getInfoInt
public int getInfoInt(int param_name) Returns the integer value of the specified parameter.- Parameters:
param_name
- the parameter- Returns:
- the parameter value
-
getProfilingInfoLong
public long getProfilingInfoLong(int param_name) Returns the long value of the specified parameter. Can be used for both cl_ulong and cl_bitfield parameters.- Parameters:
param_name
- the parameter- Returns:
- the parameter value
-
getParent
-
getReferenceCount
public final int getReferenceCount() -
isValid
public final boolean isValid()Description copied from class:PointerWrapperAbstract
Returns true if this object represents a valid pointer. The pointer might be invalid because it is NULL or because some other action has deleted the object that this pointer represents.- Overrides:
isValid
in classPointerWrapperAbstract
- Returns:
- true if the pointer is valid
-