TextureArrayBuilder WithMultiSample8X()

book_4_sparkGenerated
code_blocksInput

Description

The WithMultiSample8X method is a member of the TextureArrayBuilder class in the Sandbox namespace. This method configures the texture array to use 8x multisampling, which is a technique used to improve the quality of rendered images by reducing aliasing. Multisampling achieves this by sampling a pixel multiple times at different sample points and averaging the results.

Usage

To use the WithMultiSample8X method, you must first create an instance of the TextureArrayBuilder class. Then, call the WithMultiSample8X method on this instance to set the multisampling level to 8x. This method returns the same TextureArrayBuilder instance, allowing for method chaining.

Example

// Example of using WithMultiSample8X
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithMultiSample8X();

// Continue configuring the builder
builder.WithSize(1024, 1024)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();