API reference
API reference
Select your platform
No SDKs available
No versions available

LayerFilters

LayerFilters

object LayerFilters
Provides constants for different layer filter configurations used in spatial rendering.
This object defines various bit flags that represent different sampling and sharpening configurations. These constants can be used to configure rendering layers with specific quality settings.
Example:
This example demonstrates how to set the layer filter to use normal super sampling and quality sharpening inside of your panel registration.
LayerConfig(filters = layerFilters.NORMAL_SUPER_SAMPLING or layerFilters.QUALITY_SHARPENING)

Properties

NameSummary
AUTO_FILTER
val AUTO_FILTER: Int

This bit indicates compositor may automatically toggle a texture filtering mechanism to improve visual quality of layer. This must not be the only bit set.
DEFAULT_QUALITY
val DEFAULT_QUALITY: Int

Represents the default quality setting. This combines quality sharpening, normal super sampling, and automatic filter selection.
HIGHEST_QUALITY
val HIGHEST_QUALITY: Int

Represents the highest quality setting. This combines quality sharpening and quality super sampling.
NORMAL_SHARPENING
val NORMAL_SHARPENING: Int

This bit utilizes an efficient three-tap sharpening algorithm, which alters the sampling pattern every other frame to approximate a more computationally expensive five-tap filter.
NORMAL_SUPER_SAMPLING
val NORMAL_SUPER_SAMPLING: Int

This bit enables an efficient two-tap filter which alters the sampling pattern every other frame to approximate a more computationally expensive four-tap filter. For most use cases, the quality is indistinguishable from the four-tap filter with reduced computation costs.
QUALITY_SHARPENING
val QUALITY_SHARPENING: Int

This bit utilizes Meta Quest Super Resolution (MQSR) which is a single-pass spatial upscaling and sharpening technique optimized to run on Meta Quest devices.
QUALITY_SUPER_SAMPLING
val QUALITY_SUPER_SAMPLING: Int

This bit enables a more expensive four-tap filter which performs conventional supersampling with no temporal component.
Did you find this page helpful?