Description
The WithMultiSample4X
method is a member of the TextureArrayBuilder
class in the Sandbox namespace. This method configures the texture array to use 4x 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 sample points and averaging the results.
Usage
To use the WithMultiSample4X
method, you need to have an instance of TextureArrayBuilder
. Call this method on the instance to set the multisampling level to 4x. This method returns the same TextureArrayBuilder
instance, allowing for method chaining.
Example
// Example of using WithMultiSample4X
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithSize(1024, 1024)
.WithFormat(ImageFormat.RGBA8)
.WithMultiSample4X()
.Finish();