Class CLQueueContext
- java.lang.Object
-
- com.jogamp.opencl.util.concurrent.CLQueueContext
-
- All Implemented Interfaces:
CLResource
- Direct Known Subclasses:
CLQueueContext.CLSimpleQueueContext
public abstract class CLQueueContext extends Object implements CLResource
Superclass for all per-queue contexts as used inCLCommandQueuePool
s. A context will usually hold queue (and therefore often device) specific resources used in tasks of the same queue.Possible candidates for those resources can be compiled CLPrograms, CLKernels or even pre allocated CLBuffers.
- Author:
- Michael Bien
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CLQueueContext.CLSimpleQueueContext
A simple queue context holding a precompiled program and its kernels.
-
Field Summary
Fields Modifier and Type Field Description CLCommandQueue
queue
-
Constructor Summary
Constructors Constructor Description CLQueueContext(CLCommandQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CLContext
getCLContext()
CLCommandQueue
getQueue()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jogamp.opencl.CLResource
isReleased, release
-
-
-
-
Field Detail
-
queue
public final CLCommandQueue queue
-
-
Constructor Detail
-
CLQueueContext
public CLQueueContext(CLCommandQueue queue)
-
-
Method Detail
-
getQueue
public CLCommandQueue getQueue()
-
getCLContext
public CLContext getCLContext()
-
-