Companion

object Companion

Functions

Link copied to clipboard
fun computeTextureDataSize(format: Texture.Format, type: Texture.Type, stride: Int, height: Int, alignment: Int): Int

Computes the required buffer size for pixel data given format, type, stride, and alignment parameters.

Link copied to clipboard

Returns the maximum number of layers supported by texture arrays. Guarantees at least 256.

Link copied to clipboard

Returns the maximum size in texels of a texture of the given type. Guarantees at least 2048 for 2D textures, 256 for 3D textures.

Link copied to clipboard

Returns whether this backend supports protected textures.

Link copied to clipboard

Returns whether a particular format is compressed.

Link copied to clipboard

Queries whether a backend supports mipmapping of a particular format.

Link copied to clipboard

Queries whether a backend supports a particular format.

Link copied to clipboard

Queries whether the backend supports texture swizzling.

Link copied to clipboard
fun validatePixelFormatAndType(internalFormat: Texture.InternalFormat, pixelDataFormat: Texture.Format, pixelDataType: Texture.Type): Boolean

Validates whether a combination of internal format, pixel format, and pixel data type is valid.