createCanvasTexture
createCanvasTexture(
app,source):CanvasTexture|null
Defined in: asset/canvasTexture.ts:47
Wrap source in an engine texture and take its content once.
Null where there is no WebGL2 context to upload through (the native backend, a host still booting) — an answer, not a failure. Takes the App because the module behind it is engine-internal, and a service that samples someone else’s canvas has an App and should need nothing more.
Parameters
Section titled “Parameters”App | null | undefined
source
Section titled “source”Returns
Section titled “Returns”CanvasTexture | null