Base class for texture types which contain the data of multiple Images. Each image is of the same size and format.
Base class for ImageTextureLayered and CompressedTextureLayered. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also Texture3D.
Data is set on a per-layer basis. For Texture2DArrays, the layer specifies the array layer.
All images need to have the same width, height and number of mipmap levels.
A TextureLayered can be loaded with ResourceLoader.load().
Internally, Godot maps these files to their respective counterparts in the target rendering driver (Vulkan, OpenGL3).
Called when the data for a layer in the TextureLayered is queried.
Returns an Image resource with the data from specified layer.
Returns the TextureLayered's type. The type determines how the data is accessed, with cubemaps having special types.
LAYERED_TYPE_2D_ARRAY = 0Texture is a generic Texture2DArray.
LAYERED_TYPE_CUBEMAP = 1Texture is a Cubemap, with each side in its own layer (6 in total).
LAYERED_TYPE_CUBEMAP_ARRAY = 2Texture is a CubemapArray, with each cubemap being made of 6 layers.