API

Function WhenTextureReadyAsync

  • Waits for when the given texture is ready to be used (downloaded, converted, mip mapped...)

    Parameters

    • texture: BaseTexture

      the texture to wait for

    • Optionalsignal: AbortSignal

      optional signal to abort the readiness wait

    Returns Promise<void>

    a promise that resolves when the texture is ready