Function loadImageToArrayLayer
-
loadImageToArrayLayer(
engine: EngineContext,
tex: Texture2DArray,
layer: number,
url: string,
opts?: ArrayLayerUploadOptions,
): Promise<void>Parameters
- engine: EngineContext
Engine context.
- tex: Texture2DArray
Target texture array (from
createTexture2DArray). - layer: number
Destination layer index in
[0, tex.layers). - url: string
Image URL to fetch and decode.
- opts: ArrayLayerUploadOptions = {}
Flip-Y / premultiply overrides.
Returns Promise<void>
- engine: EngineContext
Fetch an image from
url, decode it to anImageBitmap, and upload it intolayerof a texture array. This is the optional URL-loading counterpart touploadImageToArrayLayer(); keeping it a separate function means apps that already hold a decoded source never pull in the fetch/decode path.