Description
The WithMultiSample2X
method is a member of the TextureArrayBuilder
class in the Sandbox namespace. This method configures the texture array to use 2x multisampling, which is a technique used to improve image quality by reducing aliasing effects. Multisampling achieves this by sampling a pixel multiple times at different locations and averaging the results.
Usage
To use the WithMultiSample2X
method, you must first have an instance of TextureArrayBuilder
. Call this method on the instance to set the multisampling level to 2x. This method returns the same TextureArrayBuilder
instance, allowing for method chaining.
Example
// Example of using WithMultiSample2X
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithSize(1024, 1024)
.WithFormat(ImageFormat.RGBA8)
.WithMultiSample2X()
.Finish();