UnderstandingTargetIndependentRasterization
(2023-04-21 21:50:19)
标签:
it |
分类: 技术 |
TanL mentioned several times
of
- in some sense, MS is trying to use Target Independent
Rasterization for
"coverage-to-alpha",
for
the feature tries to utilize PE/BLT for MSAA resolve, to kind of
solve
- so 'alpha' needs to be converted a coverage mask so that PE/BLT
can resolve, following naive/dither rule on sample
pattern.
On the contrary, TIR/"coverage-to-alpha"
is trying to tackle
so instead, the way it utilize PE is alpha blend, not MSAA resolve
now.
- so
e.g. 0xffff means 1.0f and 0xf0f0 means 0.5f. Though strictly
speaking, MS defines its pixel shader logic depending on 2D
overlap/non-overlap cases
respectively.
By
otherwise, if using full 3D MSAA pipeline directly, it's
full-screen antialiasing, i.e. only after ALL strokes are drawn,
all occlusion relationship among primitives calculated, then the
final MSAA resolve happens.
- this would be counter-intuition on 2D drawing, the correct
rendering effect should be:
This should the core idea of TIR
feature.