cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

alariq
Adept I

OpenCL analogue of GL_ARB_draw_indirect

Hi, All

Iis there any (planned) support for this kind of feature?

It is very usefull if you know your parameters to glEnqueueNDRange on GPU side and do not want to do round trip.

for now only one workaround I can come up with, is to always add some kind of check and offset like this:

void kernel my_kernel(__global * int myParamsCalculatedInPrevKernelRun, __global int* pout )

{

   int count = myParamsCalculatedInPrevKernelRun[0];

   int offset = myParamsCalculatedInPrevKernelRun[1];

   int gi = get_global_id(0) + offset;

   if( gi >= count + offset) return.

   // kernel code

   *pout = ...

}

But this also implies that i have to call glEnqueueNDRange with max possible amount of work-items which is not very good from various points.

Thanks.

glEnqueueNDRange
Détecter la langue » English
0 Likes
2 Replies
binying
Challenger

I have forwarded your message to the right person...

0 Likes
siu
Staff
Staff

Hi alariq,

I'll pass your suggestion to our engineering team.  Thanks for your feedback!

Siu Chi Chan

0 Likes