Search:

Type: Posts; User: Arkh

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    3,520

    Re: Grabbing image from OpenGL via OpenCL

    Thanks for the answer. I tried with clEnqueueReadImage() and {1, 1, 1} and I also verified the texture informations... But everything seems correct and I have still the same error CL_INVALID_VALUE.
    ...
  2. Replies
    6
    Views
    3,520

    Re: Grabbing image from OpenGL via OpenCL

    I tried with a FBO (Texture -> FBO -> Texture) and it's a bit different.

    When trying to read in the FBO, clEnqueueReadBuffer returns CL_SUCCESS but writes only zeros in the host buffer (which was...
  3. Replies
    6
    Views
    3,520

    Re: Grabbing image from OpenGL via OpenCL

    Ok, so let's go for some code :

    My initialisation first (in case of...)


    // Get the number of plateforms
    cl_uint numPlatforms;
    errcode = clGetPlatformIDs(0, NULL,...
  4. Replies
    6
    Views
    3,520

    Grabbing image from OpenGL via OpenCL

    Hi!

    I'm beginner to OpenCL world and I need some help to copy data from GPU to CPU. The problem is that this data is a 2D texture made by OpenGL (off-screen rendering with FBO + GLSL). The...
  5. Replies
    6
    Views
    7,445

    Re: Help setting up OpenCL

    Are you on a Windows-Like (actually Windows) or a Linux-Like plateform?

    For both you need to have CUDA installed (and perhaps CUDA SDK) (download them from here) and make sure you have the latest...
  6. Replies
    4
    Views
    1,640

    Re: Searching for simple code

    Hi!

    Look at the NVidia samples code here.
    And the derived sample here (directly visible).

    Then, building a code with the Visual is the same as for another lib (include + link) and that's it!
    ...
Results 1 to 6 of 8