The WithMSAA
method of the TextureBuilder
class allows you to specify the level of multisample anti-aliasing (MSAA) for a texture. MSAA is a technique used to improve image quality by reducing aliasing at the edges of rendered objects.
The WithMSAA
method of the TextureBuilder
class allows you to specify the level of multisample anti-aliasing (MSAA) for a texture. MSAA is a technique used to improve image quality by reducing aliasing at the edges of rendered objects.
To use the WithMSAA
method, call it on an instance of TextureBuilder
and pass a MultisampleAmount
value that specifies the desired level of multisampling. This method returns the TextureBuilder
instance, allowing for method chaining.
// Example of using WithMSAA method TextureBuilder builder = new TextureBuilder(); builder.WithMSAA(MultisampleAmount.X4); // Sets the texture to use 4x MSAA // Continue building the texture with other settings Texture texture = builder.Create("MyTexture", false, data, data.Length);