Select (Buffer) DX11

Hi guys

i was trying to make some select buffer in compute shader ,something that works like the select node in v4 but in compute shader. anyone ever made one ? or could give me some hints to achive it using interlockadd, i,m not completly sure how interlockAdd work, anyone is experienced with it ?

cheers ;D

Select (Buffer).rar (3.4 kB)