Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExternalTexture

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

Hierarchy

  • ExternalTexture

Index

Constructors

constructor

  • Constructs the texture

    Parameters

    Returns ExternalTexture

Properties

Readonly typeSearch playground for type

type: 16 = 16

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

Readonly uniqueIdSearch playground for uniqueId

uniqueId: number

Gets the unique id of this texture

useMipMapsSearch playground for useMipMaps

useMipMaps: boolean

Gets a boolean indicating if the texture uses mipmaps

Accessors

underlyingResource

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

    Returns any

Methods

disposeSearch playground for dispose

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

    Returns void

getClassNameSearch playground for getClassName

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

    Returns string

    "ExternalTexture"

isReadySearch playground for isReady

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

    Returns boolean

    true if fully ready

Static IsExternalTextureSearch playground for IsExternalTexture

  • 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 property
  • Inherited method
  • Static property
  • Static method