API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceAssetVariantProfile

@codexo/exojs / assets / stable

What the running device can accept, as variant rules see it. Filled from the live render backend once it is up - `textureFormats` is RenderBackend.supportedTextureFormats and `resolution` is its `rootResolution`. Before that it is the conservative empty profile, so a load started before the backend exists picks the unconditional fallback rather than a format nothing has confirmed.

2
props
0
methods
0
events
Import
import { AssetVariantProfile } from '@codexo/exojs'

What the running device can accept, as variant rules see it.

Filled from the live render backend once it is up - `textureFormats` is RenderBackend.supportedTextureFormats and `resolution` is its `rootResolution`. Before that it is the conservative empty profile, so a load started before the backend exists picks the unconditional fallback rather than a format nothing has confirmed.

Properties2
resolution: number
Device pixels per logical unit the application renders at.
Compressed texture formats the backend can sample, most preferred first. The order is the selection order, so it decides which of several supported candidates wins. Empty on a device with no compressed-format support.
Source