createArrayTexture

expect abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int = 1,     session: Session? = Session.active): ArrayTexture(source)

Creates a 2D array texture with the specified dimensions, format, type, and number of mipmap levels.

Return

A new instance of ArrayTexture configured with the specified parameters.

Parameters

width

The width of the texture in pixels.

height

The height of the texture in pixels.

layers

The number of layers in the array texture.

format

The color format of the texture (e.g., RGB, RGBA).

type

The color type of the texture (e.g., unsigned byte, float).

levels

The number of mipmap levels for the texture. Defaults to 1.

session

The session associated with this texture. Defaults to the currently active session.

actual abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayTexture(source)
actual abstract fun createArrayTexture(    width: Int,     height: Int,     layers: Int,     format: ColorFormat,     type: ColorType,     levels: Int,     session: Session?): ArrayTexture(source)