TextureArrayBuilder WithName( string name )

book_4_sparkGenerated
code_blocksInput

Description

The WithName method of the TextureArrayBuilder class allows you to specify a name for the texture array being built. This can be useful for debugging or for identifying the texture array in logs or other outputs.

Usage

To use the WithName method, call it on an instance of TextureArrayBuilder and pass a string representing the desired name of the texture array. This method returns the same TextureArrayBuilder instance, allowing for method chaining.

Example

// Example of using WithName method
var textureBuilder = new TextureArrayBuilder();
textureBuilder.WithName("MyTextureArray")
              .WithSize(1024, 1024)
              .WithFormat(ImageFormat.RGBA8)
              .Finish();