VolumeTexture
Represents a 3D texture, also known as a volume texture. A volume texture is a set of texture data stored in a 3D space, identified by its width, height, and depth dimensions. It can be used in various applications, such as 3D data visualization, texture maps for 3D objects, and more.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Generates mipmaps for the 3D texture. Mipmaps are a series of precomputed smaller textures derived from the base level texture, used for efficient rendering at varying distances or levels of detail.
Link copied to clipboard
Link copied to clipboard
abstract fun read(target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0)
abstract fun read(layer: Int, target: ByteBuffer, targetFormat: ColorFormat = format, targetType: ColorType = type, level: Int = 0)
Link copied to clipboard
abstract fun write(source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)
abstract fun write(layer: Int, source: ByteBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, level: Int = 0)