I am rendering to a 2D texture R32G32B32A32 with blending enabled and the blending adds the value the pixel shader returns to the value that render target already has.
The question is:
Is there an easy and fast way to make the pixel shader reset the value of the render target texel to float4(0.0f,0.0f,0.0f,0.0f), when a condition inside the pixel shader is true?
without having to copy paste the render target values to a shader resource. or making a ping pong render targets.