Function UploadImageToTexture2DArrayLayer
-
UploadImageToTexture2DArrayLayer(
texture: RawTexture2DArray,
source: ImageSource,
layer: number,
options?: IUploadImageToTexture2DArrayLayerOptions,
): voidParameters
- texture: RawTexture2DArray
defines the 2D array texture to upload into
- source: ImageSource
defines the image source to upload
- layer: number
defines the array layer to upload into
Optionaloptions: IUploadImageToTexture2DArrayLayerOptionsdefines optional upload settings (invertY, premultiplyAlpha)
Returns void
- texture: RawTexture2DArray
Uploads a decoded image source (ImageBitmap, canvas, video, image element...) into a single layer of a 2D array texture. This is the image-source counterpart to RawTexture2DArray.update, which only accepts raw bytes.