Skip to main content

TextureUsage

Enum

Texture capabilities that can be queried for a TextureFormat with DeviceInfoSystem#isFormatSupported.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v375

Texture capabilities that can be queried for a TextureFormat with DeviceInfoSystem#isFormatSupported. The values are flags, so combine them with the bitwise OR operator to require several capabilities at once.

Index

Enumeration Members

Example

var usage = TextureUsage.Render | TextureUsage.Filter;
print(global.deviceInfoSystem.isFormatSupported(TextureFormat.RGBA16Float, usage));

Enumeration Members

Filter

Filter: number

The format supports linear filtering when sampled.

Since

Lens Scripting Version 375


Mipmap

Mipmap: number

Mipmaps can be generated for the format.

Since

Lens Scripting Version 375


Render

Render: number

The format can be used as a render target.

Since

Lens Scripting Version 375