bufferEquivalent

Converts the current WindowMultisample instance to its equivalent BufferMultisample representation.

The conversion logic depends on the specific type of the WindowMultisample instance:

  • SystemDefault results in an error as it cannot be resolved to a BufferMultisample.

  • Disabled maps to BufferMultisample.Disabled.

  • SampleCount maps to a corresponding BufferMultisample.SampleCount with the same sample count value.

  • Any other type or invalid instance results in an error.

Return

The corresponding BufferMultisample representation for the current WindowMultisample instance.

Throws

If the current instance is SystemDefault or cannot be resolved.