This function creates a texture and a sampler from an image file, and returns an object that contains attributes texture and sampler.
texture
sampler
GPU device
the path of the image file to load
(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 an image file, and returns an object that contains attributes
texture
andsampler
.