Hello, i have a little problem and i wanna know it's a good way to resolve it.
I change many pixel color on my application (cellular automata),
I swap render targets to get actual back-buffer and later i put it to my Pixel-shader, in next frame operation is repeat.
My problem i when wanna know the pixel is changed or not.
I know i can solve it by use one more render target and remember my specific data per pixel, but i think it can be made some performance issue. Maybe is some other way to do it. I use DirectX10.
guess you could also solve it via stencil buffer. If pixel does not change, clip it, otherwise write one (or something else) in there. You can then use the stencil buffer to mask out only the changed/unchanged pixels.
Really thanks everyone ,Hornsj3 yes i know it about DX11 but i write it to Windows 8 and tablets with Windows 8 have minimal hardware version DX10 so i must choose it if i want target to many people. Compute Shader is available from DirectX 10.1