Effect APIs (ctx.src, ctx.wrapTexture()) returns EffectTexture as the handle of raw WebGL texture.
To use these textures, you need to pass this handle as uniform.
width / height are physical pixels of the source's native size
(0 for images / videos that haven't loaded yet).
A handle to a GPU texture.
Effect APIs (
ctx.src,ctx.wrapTexture()) returnsEffectTextureas the handle of raw WebGL texture.To use these textures, you need to pass this handle as
uniform.width/heightare physical pixels of the source's native size(
0for images / videos that haven't loaded yet).