Preprocessing Compute Buffer Data
Hi,
I am new to compute shaders and currently use a compute shader to read a normal buffer and albedo buffer and based on thresholds, append pixel information to an append compute buffer. The compute buffer persists through frames, and I want to remove elements based on the current time and the time at which the element was appended to the compute buffer. So to do this I want to preprocess the compute buffer data. So I've got the code that goes something like this:
Preprocessing Compute Buffer Data
I am new to compute shaders and currently use a compute shader to read a normal buffer and albedo buffer and based on thresholds, append pixel information to an append compute buffer. The compute buffer persists through frames, and I want to remove elements based on the current time and the time at which the element was appended to the compute buffer. So to do this I want to preprocess the compute buffer data. So I've got the code that goes something like this:
Code (CSharp):
- ย
- //COPY...