Description
The WithMultiSample16X
method is a member of the TextureArrayBuilder
class in the Sandbox namespace. This method configures the texture array to use 16x multisampling, which is a technique used to improve the quality of rendered images by reducing aliasing effects. Multisampling achieves this by sampling a pixel multiple times at different locations and averaging the results.
Usage
To use the WithMultiSample16X
method, you must first create an instance of the TextureArrayBuilder
class. Then, call the WithMultiSample16X
method on this instance to configure the texture array with 16x multisampling. This method returns the same TextureArrayBuilder
instance, allowing for method chaining to configure additional properties of the texture array.
Example
// Example of using WithMultiSample16X
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithSize(1024, 1024)
.WithFormat(ImageFormat.RGBA8)
.WithMultiSample16X()
.WithName("HighQualityTexture")
.Finish();