Companion

actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
actual fun computeDataSize(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.

expect fun computeDataSize(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.

actual fun computeDataSize(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.

actual fun computeDataSize(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.

actual fun computeDataSize(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
actual fun getMaxArrayTextureLayers(engine: Engine): Int

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

expect fun getMaxArrayTextureLayers(engine: Engine): Int

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

actual fun getMaxArrayTextureLayers(engine: Engine): Int

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

actual fun getMaxArrayTextureLayers(engine: Engine): Int

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

actual fun getMaxArrayTextureLayers(engine: Engine): Int

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

Link copied to clipboard
actual fun getMaxTextureSize(engine: Engine, type: Texture.Sampler): Int

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

expect fun getMaxTextureSize(engine: Engine, type: Texture.Sampler): Int

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

actual fun getMaxTextureSize(engine: Engine, type: Texture.Sampler): Int

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

actual fun getMaxTextureSize(engine: Engine, type: Texture.Sampler): Int

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

actual fun getMaxTextureSize(engine: Engine, type: Texture.Sampler): Int

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

Queries whether a backend supports mipmapping of a particular format.

Queries whether a backend supports mipmapping of a particular format.

Queries whether a backend supports mipmapping of a particular format.

Queries whether a backend supports mipmapping of a particular format.

Queries whether a backend supports mipmapping of a particular format.

Link copied to clipboard

Queries whether a backend supports a particular format.

Queries whether a backend supports a particular format.

Queries whether a backend supports a particular format.

Queries whether a backend supports a particular format.

Queries whether a backend supports a particular format.

Link copied to clipboard

Queries whether the backend supports texture swizzling.

Queries whether the backend supports texture swizzling.

Queries whether the backend supports texture swizzling.

Queries whether the backend supports texture swizzling.

Queries whether the backend supports texture swizzling.

Link copied to clipboard
actual 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.

expect 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.

actual 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.

actual 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.

actual 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.