Description
The WithScreenMultiSample
method is a part of the Texture2DBuilder
class in the Sandbox namespace. This method configures the texture to use screen-based multi-sampling, which is a technique used to improve the quality of rendered images by reducing aliasing effects. This method is chainable, meaning it returns the Texture2DBuilder
instance, allowing for further configuration of the texture.
Usage
To use the WithScreenMultiSample
method, first create an instance of Texture2DBuilder
. Then, call the method on this instance to enable screen-based multi-sampling for the texture. This method can be combined with other configuration methods provided by Texture2DBuilder
to fully customize the texture before finalizing it with the Finish
method.
Example
// Example of using WithScreenMultiSample
Texture2DBuilder builder = new Texture2DBuilder();
builder.WithScreenMultiSample();
Texture texture = builder.Finish();
// The texture is now configured with screen-based multi-sampling.