arrayTexture

fun arrayTexture(width: Int, height: Int, layers: Int, format: ColorFormat = ColorFormat.RGBa, type: ColorType = defaultColorType(format), levels: Int = 1, session: Session = Session.active): ArrayTexture(source)

Creates an array texture

Parameters

width

the width of each layer

height

the height of each layer

layers

the number of layers

format

the color format (ColorFormat) to be used in each layer

type

the color type to be used in each layer