Barret Meeker

Barrett Meeker

About Me

Expertise
Game Artist
Location
United States

Connect

My Tutorials

obj-image Intermediate
Creating a Bundle of Wires that tiles

Recent Forum Posts

How to reference the iteration number in OpenCL? Feb. 12, 2021, 5:02 p.m.

Oh awesome! Thanks, I saw that video too but I think I kinda flipped through some parts. Nice!

How to reference the iteration number in OpenCL? Feb. 12, 2021, 12:18 a.m.

Thanks for those examples!

I was under the impression though it would be good to use the built in opencl iteration vs a compile block because using the iterations on the opencl node means the data stays on the graphics card rather than the card having to get all the data each iteration if using a solver or compile block. That was just my understanding though, not sure if that is correct.

I thought of one other way that I haven't tried but I think might work - use the writeback to check if the work id is 0, if it is then iterate a global int *

I think that will work? I might try it. I have some opencl nodes inside a solver and I'd kind of like to try sub-stepping them internally if that makes sense...

How to reference the iteration number in OpenCL? Feb. 6, 2021, 6:31 p.m.

in the opencl node there is the built-in iterations.

How can I reference that in the opencl code though? such as for modifying a seed value with the iteration?

Thanks for any help!