Description
The WithMultiSample8X
method is a member of the Texture3DBuilder
class in the Sandbox namespace. This method configures the texture to use 8x multisampling, which is a technique used to improve the quality of rendered images by reducing aliasing effects. Multisampling achieves this by sampling a pixel multiple times at different sample points and averaging the results.
Usage
To use the WithMultiSample8X
method, you must first create an instance of the Texture3DBuilder
class. Then, call the WithMultiSample8X
method on this instance to set the multisampling level to 8x. This method returns the same Texture3DBuilder
instance, allowing for method chaining to configure other properties of the texture.
Example
// Example of using WithMultiSample8X
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithSize(256, 256, 256)
.WithFormat(ImageFormat.RGBA8)
.WithMultiSample8X();
Texture texture = builder.Finish();
// The texture is now configured with 8x multisampling.