Class ExternalTexture
Hierarchy
- ExternalTexture
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Constructs the texture
Parameters
-
video: HTMLVideoElement
The video the texture should be wrapped around
Returns ExternalTexture
-
Properties
Readonly typeSearch playground for type
The type of the underlying texture is implementation dependent, so return "UNDEFINED" for the type
Readonly unique IdSearch playground for uniqueId
Gets the unique id of this texture
use Mip MapsSearch playground for useMipMaps
Gets a boolean indicating if the texture uses mipmaps
Accessors
underlying Resource
-
Gets the underlying texture object
Returns any
Methods
disposeSearch playground for dispose
-
Dispose the texture and release its associated resources.
Returns void
get Class NameSearch playground for getClassName
-
Get the class name of the texture.
Returns string
"ExternalTexture"
is ReadySearch playground for isReady
-
Get if the texture is ready to be used (downloaded, converted, mip mapped...).
Returns boolean
true if fully ready
Static Is External TextureSearch playground for IsExternalTexture
-
Checks if a texture is an external or internal texture
Parameters
-
texture: ExternalTexture | InternalTexture
the external or internal texture
Returns texture is ExternalTexture
true if the texture is an external texture, else false
-
Class used to store an external texture (like GPUExternalTexture in WebGPU)