Forum

Compute Shader - How to filter output buffer?

hi all,

I want to calculate some of my bezier controls on gpu to increase performance. I feed in the green ones and calculate the pink ones.

problem ist the first point, because I do not want extra control points for it.
ATM I write 99999 where I actually don’t want any values within the buffer.

Unbenannt

how do I remove these entries from my buffer?

gpuLines.zip (32.7 KB)

This could be done with an AppendBuffer… where you only append values that you want to add to the buffer.