Package org.jocl

Examples of org.jocl.cl_mem


  public void clear(IImage2d output){
    clear.filter(output);
  }
 
  public void copy2array(IImage2d input,float[] data){
    cl_mem output=Mems.create(context, data.length * Sizeof.cl_float);
    try{
      Kernels.setArgs(_copy2array, input.getBuffer(), output);
      this.exec(_copy2array, input.getWidth(), input.getHeight());
      clEnqueueReadBuffer(commandQueue, output,
                CL_TRUE, 0, data.length * Sizeof.cl_float,
View Full Code Here


    cl_image_format f=this.getImageFormat();
    ImageDataInfo info = getImageDataInfo(bi);
         
 
 
    cl_mem img= CL.clCreateImage2D(
        context,
        CL_MEM_READ_ONLY | CL.CL_MEM_USE_HOST_PTR,
        new cl_image_format[]{f},
        bi.getWidth(),
        bi.getHeight(),
View Full Code Here

TOP

Related Classes of org.jocl.cl_mem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.