Description
The WithMultisample
method is part of the TextureCubeBuilder
class in the Sandbox namespace. This method allows you to specify the level of multisampling for a texture cube. Multisampling is a technique used to improve the quality of rendered images by reducing aliasing effects.
Usage
To use the WithMultisample
method, you need to have an instance of TextureCubeBuilder
. Call this method with a MultisampleAmount
parameter to set the desired level of multisampling. This method returns the TextureCubeBuilder
instance, allowing for method chaining.
Example
// Create a new TextureCubeBuilder instance
TextureCubeBuilder builder = new TextureCubeBuilder();
// Set the multisample amount to 4X
builder = builder.WithMultisample(MultisampleAmount.X4);
// Continue configuring the texture cube
builder = builder.WithSize(256, 256)
.WithFormat(ImageFormat.RGBA8)
.Finish();