TextureFeature
EditThese are the different ways Texture objects can be used. These are passed in to lovr.graphics.isFormatSupported to see which texture operations are supported by the GPU for a given format.
| Value | Description |
| sample |
The Texture can be sampled (e.g. used in a Material or sent to a texture2D variable in shaders).
|
| render |
The Texture can used as a canvas in a Pass.
|
| storage |
The Texture can be sent to a storage image variable in shaders (e.g. image2D).
|
| blit |
The Texture can be used with Pass:blit and Pass:generateMipmaps.
|
| cubic |
The Texture can be used with a sampler that uses a cubic filter mode. See FilterMode.
|