Description
The WithScreenMultiSample
method is a member of the TextureArrayBuilder
class in the Sandbox namespace. This method configures the texture array to use the same multisampling settings as the screen. It is useful when you want the texture array to match the screen's multisampling configuration, ensuring consistency in rendering quality and performance.
Usage
To use the WithScreenMultiSample
method, first create an instance of TextureArrayBuilder
. Then, call the WithScreenMultiSample
method on this instance to configure the texture array with screen multisampling settings. Finally, use the Finish
method to build and retrieve the configured texture.
Example
// Create a new TextureArrayBuilder instance
var textureBuilder = new TextureArrayBuilder();
// Configure the texture array to use screen multisampling
textureBuilder.WithScreenMultiSample();
// Finalize the texture creation
Texture texture = textureBuilder.Finish();