Description
The WithMultisample
method is part of the TextureArrayBuilder
class in the Sandbox API. This method allows you to specify the multisampling level for the texture array being built. Multisampling is a technique used to improve image quality by reducing aliasing, which is the visual stair-stepping effect that can occur along the edges of objects.
Usage
To use the WithMultisample
method, you need to have an instance of TextureArrayBuilder
. Call this method on the instance and pass a MultisampleAmount
value to specify the desired level of multisampling. This method returns the same TextureArrayBuilder
instance, allowing for method chaining.
Example
// Example of using WithMultisample method
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithMultisample(MultisampleAmount.X4);
Texture texture = builder.Finish();