Texture

Textures are multidimensional blocks of memory on the GPU, contrasted with Buffer objects which are one-dimensional. Textures are used as the destination for rendering operations, and textures loaded from images provide surface data to Material objects.

Constructors

lovr.graphics.newTextureCreate a new Texture.
Texture:newViewCreate a texture view referencing a parent Texture.

Methods

Texture:getDimensionsGet the dimensions of the Texture.
Texture:getFormatGet the format of the Texture.
Texture:getHeightGet the height of the Texture, in pixels.
Texture:getLayerCountGet the layer count of the Texture.
Texture:getMipmapCountGet the number of mipmap levels in the Texture.
Texture:getParentGet the parent of a texture view.
Texture:getSampleCountGet the number of MSAA samples in the Texture.
Texture:getTypeGet the type of the Texture.
Texture:getWidthGet the width of the Texture, in pixels.
Texture:hasUsageCheck if a Texture was created with a set of usage flags.
Texture:isViewCheck if a Texture is a texture view.
Texture:newViewCreate a texture view referencing a parent Texture.

See also