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.
Lens Scripting Version 375
var usage = TextureUsage.Render | TextureUsage.Filter;print(global.deviceInfoSystem.isFormatSupported(TextureFormat.RGBA16Float, usage)); Copy
var usage = TextureUsage.Render | TextureUsage.Filter;print(global.deviceInfoSystem.isFormatSupported(TextureFormat.RGBA16Float, usage));
The format supports linear filtering when sampled.
Mipmaps can be generated for the format.
The format can be used as a render target.
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.
Since
Lens Scripting Version 375
Example