com.jogamp.opencl.util.concurrent
Class CLQueueContextFactory<C extends CLQueueContext>

java.lang.Object
  extended by com.jogamp.opencl.util.concurrent.CLQueueContextFactory<C>
Direct Known Subclasses:
CLQueueContextFactory.CLSimpleContextFactory

public abstract class CLQueueContextFactory<C extends CLQueueContext>
extends Object

Creates CLQueueContexts.

Author:
Michael Bien

Nested Class Summary
static class CLQueueContextFactory.CLSimpleContextFactory
          Creates CLQueueContext.CLSimpleQueueContexts containing a precompiled program.
 
Constructor Summary
CLQueueContextFactory()
           
 
Method Summary
static CLQueueContextFactory.CLSimpleContextFactory createSimple(String source)
          Creates a simple context factory producing single program contexts.
abstract  C setup(CLCommandQueue queue, CLQueueContext old)
          Creates a new queue context for the given queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLQueueContextFactory

public CLQueueContextFactory()
Method Detail

setup

public abstract C setup(CLCommandQueue queue,
                        CLQueueContext old)
Creates a new queue context for the given queue.

Parameters:
old - the old context or null.

createSimple

public static CLQueueContextFactory.CLSimpleContextFactory createSimple(String source)
Creates a simple context factory producing single program contexts.

Parameters:
source - sourcecode of a OpenCL program.