de.grogra.gpuflux.jocl
Class JOCLKernel

java.lang.Object
  extended by de.grogra.gpuflux.jocl.JOCLKernel

public class JOCLKernel
extends java.lang.Object


Constructor Summary
JOCLKernel(org.jocl.cl_kernel kernel, java.lang.String name)
           
 
Method Summary
 void finalize()
           
 org.jocl.cl_kernel getKernel()
           
 void setKernelArg(int arg_idx, int arg_size, org.jocl.Pointer p)
           
 void setKernelArgBuffer(int arg_idx, ByteArray cameraBuffer)
           
 void setKernelArgFloat(int arg_idx, float f)
           
 void setKernelArgInt(int arg_idx, int i)
           
 void setKernelArgMemBuffer(int arg_idx, JOCLBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOCLKernel

public JOCLKernel(org.jocl.cl_kernel kernel,
                  java.lang.String name)
Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getKernel

public org.jocl.cl_kernel getKernel()

setKernelArg

public void setKernelArg(int arg_idx,
                         int arg_size,
                         org.jocl.Pointer p)

setKernelArgBuffer

public void setKernelArgBuffer(int arg_idx,
                               ByteArray cameraBuffer)

setKernelArgFloat

public void setKernelArgFloat(int arg_idx,
                              float f)

setKernelArgInt

public void setKernelArgInt(int arg_idx,
                            int i)

setKernelArgMemBuffer

public void setKernelArgMemBuffer(int arg_idx,
                                  JOCLBuffer buf)