setImage

actual fun setImage(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a 2D texture level with image data from a buffer.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a rectangular sub-region of a 2D texture level.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

width

Width of sub-region in pixels

height

Height of sub-region in pixels

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

zoffset

Depth offset (layer for arrays, face for cubemaps)

width

Width of sub-region in pixels

height

Height of sub-region in pixels

depth

Depth of sub-region in layers/faces

descriptor

Pixel buffer containing the image data

expect fun setImage(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a 2D texture level with image data from a buffer.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

descriptor

Pixel buffer containing the image data


expect fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a rectangular sub-region of a 2D texture level.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

width

Width of sub-region in pixels

height

Height of sub-region in pixels

descriptor

Pixel buffer containing the image data


expect fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

zoffset

Depth offset (layer for arrays, face for cubemaps)

width

Width of sub-region in pixels

height

Height of sub-region in pixels

depth

Depth of sub-region in layers/faces

descriptor

Pixel buffer containing the image data

actual fun setImage(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a 2D texture level with image data from a buffer.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a rectangular sub-region of a 2D texture level.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

width

Width of sub-region in pixels

height

Height of sub-region in pixels

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

zoffset

Depth offset (layer for arrays, face for cubemaps)

width

Width of sub-region in pixels

height

Height of sub-region in pixels

depth

Depth of sub-region in layers/faces

descriptor

Pixel buffer containing the image data

actual fun setImage(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a 2D texture level with image data from a buffer.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a rectangular sub-region of a 2D texture level.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

width

Width of sub-region in pixels

height

Height of sub-region in pixels

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

zoffset

Depth offset (layer for arrays, face for cubemaps)

width

Width of sub-region in pixels

height

Height of sub-region in pixels

depth

Depth of sub-region in layers/faces

descriptor

Pixel buffer containing the image data

actual fun setImage(engine: Engine, level: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a 2D texture level with image data from a buffer.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a rectangular sub-region of a 2D texture level.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

width

Width of sub-region in pixels

height

Height of sub-region in pixels

descriptor

Pixel buffer containing the image data


actual fun setImage(engine: Engine, level: Int, xoffset: Int, yoffset: Int, zoffset: Int, width: Int, height: Int, depth: Int, descriptor: Texture.PixelBufferDescriptor)

Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.

The descriptor's callback is invoked when the driver has consumed the data.

Parameters

engine

Engine this texture is associated with

level

Mipmap level to update (must be <getLevels)

xoffset

Left offset in pixels

yoffset

Bottom offset in pixels

zoffset

Depth offset (layer for arrays, face for cubemaps)

width

Width of sub-region in pixels

height

Height of sub-region in pixels

depth

Depth of sub-region in layers/faces

descriptor

Pixel buffer containing the image data