TextureArrayBuilder WithMultiSample6X()

book_4_sparkGenerated
code_blocksInput

Description

The WithMultiSample6X method is a member of the TextureArrayBuilder class in the Sandbox namespace. This method configures the texture array to use 6x multisampling, which is a technique used to improve the quality of rendered images by reducing aliasing effects. Multisampling is particularly useful in rendering scenarios where high-quality visuals are required.

Usage

To use the WithMultiSample6X method, you must first create an instance of the TextureArrayBuilder class. Once you have the builder instance, you can chain the WithMultiSample6X method to configure the texture array with 6x multisampling. This method returns the same TextureArrayBuilder instance, allowing for method chaining to set additional properties or configurations before finalizing the texture array with the Finish method.

Example

// Example of using WithMultiSample6X
TextureArrayBuilder builder = new TextureArrayBuilder();
Texture texture = builder
    .WithSize(1024, 1024)
    .WithFormat(ImageFormat.RGBA8)
    .WithMultiSample6X()
    .Finish();

// The texture is now configured with 6x multisampling.