Description
The WithFormat
method is used to specify the image format for the texture array being built. This method is part of the TextureArrayBuilder
class, which provides a fluent interface for configuring and creating texture arrays in the Sandbox environment.
Usage
To use the WithFormat
method, call it on an instance of TextureArrayBuilder
and pass the desired ImageFormat
as a parameter. This method returns the same TextureArrayBuilder
instance, allowing for method chaining.
Example
// Example of using WithFormat method
TextureArrayBuilder builder = new TextureArrayBuilder();
builder.WithFormat(ImageFormat.RGBA8);
// Continue configuring the builder
builder.WithSize(1024, 1024)
.WithCount(10)
.Finish();