However, I didn't use the other three channels at all, so I was wondering can we enable alpha blend for format like DXGI_FORMAT_R16G16_FLOAT? which essentially have only one color channel and one alpha channel?
Or there is a much better way (efficient way) to get pixel's min/max depth?
As well as the MRT suggestion, you could output r=z and g=1-z, and then just use min blending (and remember later that G contains 1-z, not z :wink:).
Humm~~ that's sound much better, so we don't need MRTs, min operation is per component right? why didn't I come up with that idea? :lol: