CanvasToTexture Op

CanvasToTexture

convert a canvas to texture


this operator uses texImage2D functionality context drawimage

this can be an Image Element, Canvas Element or HTML Video Element


Full Name
  • Ops.Gl.CanvasToTexture
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


canvas (Object)
filter index (Number: integer)
wrap index (Number: integer)
Force Update (Trigger)

OUTPUT PORTS


texture (Object)
width (Number)
height (Number)

Patches using CanvasToTexture

  • Examples
  • Public
  • My Patches

Changelog


improvementAdded workaround for detecting correct size of video elementsuser avatarpandur - 2024-04-22 14:07
featureAdd trigger input to force an update of the texture, needed for video elementsuser avatarpandur - 2024-04-22 14:07