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.
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.
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 of using WithName method var textureBuilder = new TextureArrayBuilder(); textureBuilder.WithName("MyTextureArray") .WithSize(1024, 1024) .WithFormat(ImageFormat.RGBA8) .Finish();