com.jogamp.opencl.util.concurrent
Class CLQueueContext.CLSimpleQueueContext

java.lang.Object
  extended by com.jogamp.opencl.util.concurrent.CLQueueContext
      extended by com.jogamp.opencl.util.concurrent.CLQueueContext.CLSimpleQueueContext
All Implemented Interfaces:
CLResource
Enclosing class:
CLQueueContext

public static class CLQueueContext.CLSimpleQueueContext
extends CLQueueContext

A simple queue context holding a precompiled program and its kernels.

Author:
Michael Bien

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jogamp.opencl.util.concurrent.CLQueueContext
CLQueueContext.CLSimpleQueueContext
 
Field Summary
 Map<String,CLKernel> kernels
           
 CLProgram program
           
 
Fields inherited from class com.jogamp.opencl.util.concurrent.CLQueueContext
queue
 
Constructor Summary
CLQueueContext.CLSimpleQueueContext(CLCommandQueue queue, CLProgram program)
           
 
Method Summary
 CLKernel getKernel(String name)
           
 Map<String,CLKernel> getKernels()
           
 CLProgram getProgram()
           
 boolean isReleased()
          Returns true if CLResource.release() has been called.
 void release()
          Releases the OpenCL resource.
 
Methods inherited from class com.jogamp.opencl.util.concurrent.CLQueueContext
getCLContext, getQueue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

program

public final CLProgram program

kernels

public final Map<String,CLKernel> kernels
Constructor Detail

CLQueueContext.CLSimpleQueueContext

public CLQueueContext.CLSimpleQueueContext(CLCommandQueue queue,
                                           CLProgram program)
Method Detail

getKernels

public Map<String,CLKernel> getKernels()

getKernel

public CLKernel getKernel(String name)

getProgram

public CLProgram getProgram()

release

public void release()
Description copied from interface: CLResource
Releases the OpenCL resource.


isReleased

public boolean isReleased()
Description copied from interface: CLResource
Returns true if CLResource.release() has been called.