Class ExternalTexture
Constructors
constructor
-
Constructs the texture
Parameters
- video: HTMLVideoElement
The video the texture should be wrapped around
Returns ExternalTexture
- video: HTMLVideoElement
Properties
Readonlyformat
format: 4294967295 = Constants.TEXTUREFORMAT_UNDEFINED
The format of the underlying texture is implementation dependent, so return "UNDEFINED" for the format
Readonlytype
type: 16 = Constants.TEXTURETYPE_UNDEFINED
The type of the underlying texture is implementation dependent, so return "UNDEFINED" for the type
Readonlyunique Id
uniqueId: number
Gets the unique id of this texture
use Mip Maps
useMipMaps: boolean = false
Gets a boolean indicating if the texture uses mipmaps
Accessors
underlying Resource
-
get underlyingResource(): any
Gets the underlying texture object
Returns any
Methods
dispose
-
Dispose the texture and release its associated resources.
Returns void
get Class Name
-
Get the class name of the texture.
Returns string
"ExternalTexture"
is Ready
-
Get if the texture is ready to be used (downloaded, converted, mip mapped...).
Returns boolean
true if fully ready
StaticIs External Texture
-
Checks if a texture is an external or internal texture
Parameters
- texture: InternalTexture | ExternalTexture
the external or internal texture
Returns texture is ExternalTexture
true if the texture is an external texture, else false
- texture: InternalTexture | ExternalTexture
Class used to store an external texture (like GPUExternalTexture in WebGPU)