Description
The WithMultiSample8X
method is a member of the TextureBuilder
class in the Sandbox namespace. This method configures the texture to utilize 8x multisampling, which is a technique used to improve image quality by reducing aliasing at the cost of increased computational resources.
Usage
To use the WithMultiSample8X
method, you must first have an instance of TextureBuilder
. Call this method on the instance to set the multisampling level to 8x. This method returns the same TextureBuilder
instance, allowing for method chaining.
Example
// Example of using WithMultiSample8X
TextureBuilder textureBuilder = new TextureBuilder();
textureBuilder.WithMultiSample8X();
// Continue configuring the texture
textureBuilder.WithSize(1024, 768)
.WithFormat(ImageFormat.RGBA8);
// Create the texture
Texture texture = textureBuilder.Create("MyTexture", false, data, data.Length);