Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store an external texture (like GPUExternalTexture in WebGPU)

Hierarchy

  • ExternalTexture

Index

Constructors

  • Constructs the texture

    Parameters

    • video: HTMLVideoElement

      The video the texture should be wrapped around

    Returns ExternalTexture

Properties

type: 16 = 16

The type of the underlying texture is implementation dependent, so return "UNDEFINED" for the type

uniqueId: number

Gets the unique id of this texture

useMipMaps: boolean

Gets a boolean indicating if the texture uses mipmaps

Accessors

  • get underlyingResource(): any
  • Gets the underlying texture object

    Returns any

Methods

  • dispose(): void
  • Dispose the texture and release its associated resources.

    Returns void

  • getClassName(): string
  • Get the class name of the texture.

    Returns string

    "ExternalTexture"

  • isReady(): boolean
  • Get if the texture is ready to be used (downloaded, converted, mip mapped...).

    Returns boolean

    true if fully ready

  • Checks if a texture is an external or internal texture

    Parameters

    Returns texture is ExternalTexture

    true if the texture is an external texture, else false

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme