hi all,
I want to use an interlockedAdd to count up the number of my bright pixels. Multiple examples use a second shader that generates an empty buffer of the same dimensions. Is this mandatory for interlockedAdd to work - does it need an pre-existing buffer to work on?
I found the node AddSpectral(ValueBuffer) which should do something very similar. Did a quick test but now I am unsure if the node works at all. I am unable to read back the sum. stride4 should be an integer. callmenames-2021-02-13.v4p (6.0 KB)
I guess I just want to know if I am on the right track.