webgl-dsl
    Preparing search index...

    Function use

    • Pass a disposable object into function and destroy it after the call

      Type Parameters

      Parameters

      • item: T
      • callback: (item: T) => R

      Returns R

      use(texture, (texture) => {
      // do something with texture
      });