Results 1 to 2 of 2

Thread: build sampler direcly on buffer object

  1. #1
    Junior Member
    Join Date
    Sep 2009

    build sampler direcly on buffer object

    An usefull cuda functionality is the possibility of use sampler (texture) direcly on linear memory without copy on an Image specific object.
    The problem of 1.0 OpenCL specification is we have to :
    copy buffer to an image object and after that we can use a sampler above the image.

    in cuda :
    we direcly construct a sampler over the buffer with user define sutrucutre (row, col pitch).

    this is very useful for example when we want to use a memory segment for different image size :
    we allocate for a max image size and we use for different image size without reallocation of memory.

  2. #2

    Re: build sampler direcly on buffer object

    This would be really useful... getting something like non-separable convolution running fast using buffers is a fair amount of work, and the flexibility of samplers when it comes to dealing with boundaries etc is hard to replicate efficiently. I understand there might be portability concerns regarding such a feature, but there should at least be a sanctioned extension allowing for it.

Similar Threads

  1. Buffer Object
    By Egibert in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 08-08-2011, 02:55 PM
  2. Undefined buffer object location ?
    By pmdinu in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 3
    Last Post: 07-21-2009, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean