Canvas:getMSAA

Returns the number of multisample antialiasing samples to use when rendering to the Canvas. Increasing this number will make the contents of the Canvas appear more smooth at the cost of performance. It is common to use powers of 2 for this value.

samples = Canvas:getMSAA()

Arguments

None

Returns

NameTypeDescription
samplesnumberThe number of MSAA samples.

Notes

All textures attached to the Canvas must be created with this MSAA value.

See also