API

Function CreateResizedCopy

  • Uses the GPU to create a copy texture rescaled at a given size

    Parameters

    • texture: Texture

      Texture to copy from

    • width: number

      defines the desired width

    • height: number

      defines the desired height

    • useBilinearMode: boolean = true

      defines if bilinear mode has to be used

    Returns Texture

    the generated texture