Description
The WithArrayCount
method is part of the TextureCubeBuilder
class in the Sandbox namespace. This method allows you to specify the number of texture arrays to be used when building a texture cube. It is useful when you need to create a texture cube with multiple layers or faces.
Usage
To use the WithArrayCount
method, you need to have an instance of TextureCubeBuilder
. Call this method on the instance and pass the desired array count as an integer parameter. This method returns the same TextureCubeBuilder
instance, allowing for method chaining.
Example
// Create a new TextureCubeBuilder instance
TextureCubeBuilder builder = new TextureCubeBuilder();
// Set the array count to 6
builder.WithArrayCount(6);
// Continue configuring the builder as needed
builder.WithSize(256, 256)
.WithFormat(ImageFormat.RGBA8)
.Finish();