Description
The WithScreenMultiSample
method is a member of the Texture3DBuilder
class in the Sandbox namespace. This method configures the Texture3DBuilder
to use screen-based multi-sampling. Multi-sampling is a technique used to improve the quality of rendered images by reducing aliasing effects. This method is part of a fluent interface, allowing for method chaining to configure a 3D texture before finalizing it with the Finish
method.
Usage
To use the WithScreenMultiSample
method, first create an instance of Texture3DBuilder
. Then, call the method on this instance to enable screen-based multi-sampling. This method does not take any parameters and returns the same Texture3DBuilder
instance, allowing for further configuration through method chaining.
Example
// Example of using WithScreenMultiSample
Texture3DBuilder builder = new Texture3DBuilder();
builder.WithScreenMultiSample()
.WithSize(256, 256, 256)
.WithFormat(ImageFormat.RGBA8)
.Finish();