Desc2d

lumin. Desc2d

Optional data with which to initialize a TextureResource, which is a 2D texture, in order to customize its behavior.

Constructor

new Desc2d()

Members

allowMipmaps :boolean

Specify if mipmapping is enabled or disabled

Type:
  • boolean

(static, constant) DEFAULT :lumin.Desc2d

Type:

numMipmaps :number

if 0 and mipmaps are allowed, full mipmap is used, else the numMipmaps. Defaults to 0

Type:
  • number

params :lumin.utils.Params2d

Type:

upscaleToRGB :boolean

Upscale images that have fewer than 3 bytes per channel to RGB.

Type:
  • boolean