This function creates a texture and a sampler from a 2D canvas, and returns an object that contains attributes texture and sampler.
texture
sampler
GPU device
the HTML canvas element
(optional) the addressing model for the u texture coordinate, defaulting to 'repeat'
u
'repeat'
(optional) the addressing model for the v texture coordinate, defaulting to 'repeat'
v
Generated using TypeDoc
This function creates a texture and a sampler from a 2D canvas, and returns an object that contains attributes
texture
andsampler
.