effect-motion
API ReferencerendererNamespacesImagesVariables

register

const register: (...args) => Effect<void, never, Scope>;

Variable: register

const register: (...args) => Effect<void, never, Scope>;

Defined in: packages/renderer/src/Images.ts:134

Begin decoding an image's bytes under an id.

Parameters

ParameterType
...args[Images, string, Uint8Array<ArrayBufferLike>]

Returns

Effect<void, never, Scope>

Remarks

Idempotent per id: registering the same image twice does nothing the second time, and a racing decode cannot clobber the first result. The decode is forked so it overlaps the rest of the frame's sync; use ready to await the texture.

On this page