preferredSampleCount property

  1. @override
int get preferredSampleCount
override

Samples to use for multisampled targets, or 1 for none.

One number rather than a boolean, because "does MSAA work" and "how much" are different questions and the engine had only been asking the first — then hardcoding four. A backend that supports multisampling at a different count, or that would rather not, has somewhere to say so.

Implementation

@override
int get preferredSampleCount => 4;