The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

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.